/external/checkpolicy/ |
D | policy_define.h | 68 role_datum_t *define_role_dom(role_datum_t *r); 69 role_datum_t *merge_roles_dom(role_datum_t *r1,role_datum_t *r2);
|
D | module_compiler.h | 33 role_datum_t *declare_role(unsigned char isattr); 38 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr);
|
D | module_compiler.c | 167 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 …]
|
D | policy_define.c | 1872 role_datum_t *role; in define_role_types() 1926 role_datum_t *r, *attr; in define_role_attr() 1975 role_datum_t *r, *attr; in define_roleattribute() 2036 role_datum_t *merge_roles_dom(role_datum_t * r1, role_datum_t * r2) in merge_roles_dom() 2038 role_datum_t *new; in merge_roles_dom() 2041 return (role_datum_t *) 1; /* any non-NULL value */ in merge_roles_dom() 2044 new = malloc(sizeof(role_datum_t)); in merge_roles_dom() 2049 memset(new, 0, sizeof(role_datum_t)); in merge_roles_dom() 2081 role_datum_t *rdp = (role_datum_t *) arg; in dominate_role_recheck() 2082 role_datum_t *rdatum = (role_datum_t *) datum; in dominate_role_recheck() [all …]
|
D | policy_parse.y | 487 { $$ = merge_roles_dom((role_datum_t*)$1, (role_datum_t*)$2); if ($$ == 0) return -1;} 492 {$$ = define_role_dom((role_datum_t*)$4); if ($$ == 0) return -1;}
|
/external/libsepol/tests/ |
D | test-linker-roles.c | 55 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()
|
D | test-common.c | 78 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()
|
D | test-common.h | 65 extern role_datum_t *test_role_type_set(policydb_t * p, char *id, avrule_decl_t * decl, char **type…
|
/external/libsepol/src/ |
D | context.c | 37 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()
|
D | expand.c | 544 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback() 545 role_datum_t *dest; in role_bounds_copy_callback() 688 role_datum_t *role = (role_datum_t *) datum; in role_remap_dominates() 713 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() 720 role = (role_datum_t *)datum; in role_fix_callback() 740 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback() 759 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback() 781 role_datum_t *role; in role_copy_callback() 782 role_datum_t *new_role; in role_copy_callback() 787 role = (role_datum_t *) datum; in role_copy_callback() [all …]
|
D | link.c | 344 role_datum_t *role, *base_role, *new_role = NULL; in role_copy_callback() 347 role = (role_datum_t *) datum; in role_copy_callback() 377 (role_datum_t *) malloc(sizeof(*new_role))) == NULL) { in role_copy_callback() 777 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback() 778 role_datum_t *dest; in role_bounds_copy_callback() 1081 role_datum_t *role, *dest_role = NULL; in role_fix_callback() 1088 role = (role_datum_t *) datum; in role_fix_callback() 2393 role_datum_t *role, *sub_attr; in expand_role_attributes() 2399 role = (role_datum_t *)datum; in expand_role_attributes() 2453 role_datum_t *decl_role, *base_role; in populate_decl_roleattributes() [all …]
|
D | policydb.c | 396 void role_datum_init(role_datum_t * x) in role_datum_init() 398 memset(x, 0, sizeof(role_datum_t)); in role_datum_init() 405 void role_datum_destroy(role_datum_t * x) in role_datum_destroy() 633 role_datum_t *role; in roles_init() 635 role = calloc(1, sizeof(role_datum_t)); in roles_init() 726 role_datum_t *role; in policydb_role_cache() 728 role = (role_datum_t *) datum; in policydb_role_cache() 817 role_datum_t *role; in role_index() 819 role = (role_datum_t *) datum; in role_index() 1012 p->role_val_to_struct = (role_datum_t **) in policydb_index_others() [all …]
|
D | hierarchy.c | 407 role_datum_t *r, *rp; in check_role_hierarchy_callback() 410 r = (role_datum_t *) d; in check_role_hierarchy_callback()
|
D | services.c | 133 role_datum_t *r1, *r2; in constraint_expr_eval() 870 role_datum_t *role; in convert_context() 894 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context() 1296 role_datum_t *role; in sepol_get_user_sids()
|
D | genusers.c | 43 role_datum_t *roldatum;
|
D | users.c | 117 role_datum_t *roldatum; in sepol_user_modify()
|
D | write.c | 996 role_datum_t *role; in role_write() 1003 role = (role_datum_t *) datum; in role_write() 1845 role_datum_t *role = datum; in role_attr_uncount()
|
/external/libsepol/include/sepol/policydb/ |
D | policydb.h | 140 } role_datum_t; typedef 498 role_datum_t **role_val_to_struct; 614 extern void role_datum_init(role_datum_t * x); 615 extern void role_datum_destroy(role_datum_t * x);
|
/external/checkpolicy/test/ |
D | dismod.c | 499 role_datum_t *role; in role_display_callback() 502 role = (role_datum_t *) datum; in role_display_callback()
|