Home
last modified time | relevance | path

Searched refs:role_datum_t (Results 1 – 19 of 19) sorted by relevance

/external/checkpolicy/
Dpolicy_define.h69 role_datum_t *define_role_dom(role_datum_t *r);
70 role_datum_t *merge_roles_dom(role_datum_t *r1,role_datum_t *r2);
Dmodule_compiler.h33 role_datum_t *declare_role(unsigned char isattr);
38 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr);
Dmodule_compiler.c167 char *role_id, role_datum_t *role) in role_implicit_bounds()
169 role_datum_t *bounds; in role_implicit_bounds()
203 role_datum_t *declare_role(unsigned char isattr) in declare_role()
206 role_datum_t *role = NULL, *dest_role = NULL; in declare_role()
214 if ((role = (role_datum_t *) malloc(sizeof(*role))) == NULL) { in declare_role()
246 dest_role = (role_datum_t *) hashtab_search(roles_tab, dest_id); in declare_role()
249 (role_datum_t *) malloc(sizeof(*dest_role))) == in declare_role()
560 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr) in get_local_role()
562 role_datum_t *dest_roledatum; in get_local_role()
576 dest_roledatum = (role_datum_t *)malloc(sizeof(role_datum_t)); in get_local_role()
[all …]
Dpolicy_define.c1919 role_datum_t *role; in define_role_types()
1973 role_datum_t *r, *attr; in define_role_attr()
2022 role_datum_t *r, *attr; in define_roleattribute()
2083 role_datum_t *merge_roles_dom(role_datum_t * r1, role_datum_t * r2) in merge_roles_dom()
2085 role_datum_t *new; in merge_roles_dom()
2088 return (role_datum_t *) 1; /* any non-NULL value */ in merge_roles_dom()
2091 new = malloc(sizeof(role_datum_t)); in merge_roles_dom()
2096 memset(new, 0, sizeof(role_datum_t)); in merge_roles_dom()
2128 role_datum_t *rdp = (role_datum_t *) arg; in dominate_role_recheck()
2129 role_datum_t *rdatum = (role_datum_t *) datum; in dominate_role_recheck()
[all …]
Dpolicy_parse.y494 { $$ = merge_roles_dom((role_datum_t*)$1, (role_datum_t*)$2); if ($$ == 0) return -1;}
499 {$$ = define_role_dom((role_datum_t*)$4); if ($$ == 0) return -1;}
/external/libsepol/tests/
Dtest-linker-roles.c55 static void only_dominates_self(policydb_t * p, role_datum_t * role) in only_dominates_self()
73 role_datum_t *role; in base_role_tests()
102 role_datum_t *role; in module_role_tests()
Dtest-common.c78 role_datum_t *d = (role_datum_t *) datum; in role_test_index()
185 role_datum_t *test_role_type_set(policydb_t * p, char *id, avrule_decl_t * decl, char **types, unsi… in test_role_type_set()
189 role_datum_t *role; in test_role_type_set()
Dtest-common.h65 extern role_datum_t *test_role_type_set(policydb_t * p, char *id, avrule_decl_t * decl, char **type…
/external/libsepol/src/
Dcontext.c37 role_datum_t *role; in context_is_valid()
151 role_datum_t *roldatum; in context_from_record()
177 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
Dlink.c351 role_datum_t *role, *base_role, *new_role = NULL; in role_copy_callback()
354 role = (role_datum_t *) datum; in role_copy_callback()
384 (role_datum_t *) malloc(sizeof(*new_role))) == NULL) { in role_copy_callback()
792 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
793 role_datum_t *dest; in role_bounds_copy_callback()
1096 role_datum_t *role, *dest_role = NULL; in role_fix_callback()
1103 role = (role_datum_t *) datum; in role_fix_callback()
2411 role_datum_t *role, *sub_attr; in expand_role_attributes()
2417 role = (role_datum_t *)datum; in expand_role_attributes()
2471 role_datum_t *decl_role, *base_role; in populate_decl_roleattributes()
[all …]
Dexpand.c638 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
639 role_datum_t *dest; in role_bounds_copy_callback()
782 role_datum_t *role = (role_datum_t *) datum; in role_remap_dominates()
807 role_datum_t *role, *new_role, *regular_role; in role_fix_callback()
814 role = (role_datum_t *)datum; in role_fix_callback()
834 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
853 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback()
875 role_datum_t *role; in role_copy_callback()
876 role_datum_t *new_role; in role_copy_callback()
881 role = (role_datum_t *) datum; in role_copy_callback()
[all …]
Dpolicydb.c438 void role_datum_init(role_datum_t * x) in role_datum_init()
440 memset(x, 0, sizeof(role_datum_t)); in role_datum_init()
447 void role_datum_destroy(role_datum_t * x) in role_datum_destroy()
677 role_datum_t *role; in roles_init()
679 role = calloc(1, sizeof(role_datum_t)); in roles_init()
770 role_datum_t *role; in policydb_role_cache()
772 role = (role_datum_t *) datum; in policydb_role_cache()
861 role_datum_t *role; in role_index()
863 role = (role_datum_t *) datum; in role_index()
1056 p->role_val_to_struct = (role_datum_t **) in policydb_index_others()
[all …]
Dhierarchy.c407 role_datum_t *r, *rp; in check_role_hierarchy_callback()
410 r = (role_datum_t *) d; in check_role_hierarchy_callback()
Dgenusers.c43 role_datum_t *roldatum;
Dusers.c117 role_datum_t *roldatum; in sepol_user_modify()
Dservices.c390 role_datum_t *r1, *r2; in constraint_expr_eval_reason()
1494 role_datum_t *role; in convert_context()
1518 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
1920 role_datum_t *role; in sepol_get_user_sids()
Dwrite.c1009 role_datum_t *role; in role_write()
1016 role = (role_datum_t *) datum; in role_write()
1861 role_datum_t *role = datum; in role_attr_uncount()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h141 } role_datum_t; typedef
502 role_datum_t **role_val_to_struct;
618 extern void role_datum_init(role_datum_t * x);
619 extern void role_datum_destroy(role_datum_t * x);
/external/checkpolicy/test/
Ddismod.c499 role_datum_t *role; in role_display_callback()
502 role = (role_datum_t *) datum; in role_display_callback()