/external/selinux/checkpolicy/ |
D | policy_define.h | 73 role_datum_t *define_role_dom(role_datum_t *r); 74 role_datum_t *merge_roles_dom(role_datum_t *r1,role_datum_t *r2);
|
D | module_compiler.c | 216 char *role_id, role_datum_t *role) in role_implicit_bounds() 218 role_datum_t *bounds; in role_implicit_bounds() 252 static int create_role(uint32_t scope, unsigned char isattr, role_datum_t **role, char **key) in create_role() 255 role_datum_t *datum = NULL; in create_role() 315 role_datum_t *declare_role(unsigned char isattr) in declare_role() 318 role_datum_t *role = NULL; in declare_role() 319 role_datum_t *dest_role = NULL; in declare_role() 666 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr) in get_local_role() 668 role_datum_t *dest_roledatum; in get_local_role() 682 dest_roledatum = (role_datum_t *)malloc(sizeof(role_datum_t)); in get_local_role() [all …]
|
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 | policy_define.c | 2704 role_datum_t *role; in define_role_types() 2759 role_datum_t *r, *attr; in define_role_attr() 2808 role_datum_t *r, *attr; in define_roleattribute() 2870 role_datum_t *merge_roles_dom(role_datum_t * r1, role_datum_t * r2) in merge_roles_dom() 2872 role_datum_t *new; in merge_roles_dom() 2875 return (role_datum_t *) 1; /* any non-NULL value */ in merge_roles_dom() 2878 new = malloc(sizeof(role_datum_t)); in merge_roles_dom() 2883 memset(new, 0, sizeof(role_datum_t)); in merge_roles_dom() 2915 role_datum_t *rdp = (role_datum_t *) arg; in dominate_role_recheck() 2916 role_datum_t *rdatum = (role_datum_t *) datum; in dominate_role_recheck() [all …]
|
D | policy_parse.y | 526 { $$ = merge_roles_dom((role_datum_t*)$1, (role_datum_t*)$2); if ($$ == 0) return -1;} 531 {$$ = define_role_dom((role_datum_t*)$4); if ($$ == 0) return -1;}
|
/external/selinux/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() 184 role_datum_t *test_role_type_set(policydb_t * p, const char *id, avrule_decl_t * decl, const char *… in test_role_type_set() 188 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, const char *id, avrule_decl_t * decl, const…
|
/external/selinux/libsepol/src/ |
D | context.c | 38 role_datum_t *role; in context_is_valid() 152 role_datum_t *roldatum; in context_from_record() 178 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
|
D | link.c | 351 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() 793 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback() 794 role_datum_t *dest; in role_bounds_copy_callback() 1097 role_datum_t *role, *dest_role = NULL; in role_fix_callback() 1104 role = (role_datum_t *) datum; in role_fix_callback() 2421 role_datum_t *role, *sub_attr; in expand_role_attributes() 2427 role = (role_datum_t *)datum; in expand_role_attributes() 2481 role_datum_t *decl_role, *base_role; in populate_decl_roleattributes() [all …]
|
D | expand.c | 564 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback() 565 role_datum_t *dest; in role_bounds_copy_callback() 708 role_datum_t *role = (role_datum_t *) datum; in role_remap_dominates() 733 role_datum_t *role, *new_role, *regular_role; in role_fix_callback() 740 role = (role_datum_t *)datum; in role_fix_callback() 760 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback() 779 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback() 801 role_datum_t *role; in role_copy_callback() 802 role_datum_t *new_role; in role_copy_callback() 807 role = (role_datum_t *) datum; in role_copy_callback() [all …]
|
D | policydb.c | 489 void role_datum_init(role_datum_t * x) in role_datum_init() 491 memset(x, 0, sizeof(role_datum_t)); in role_datum_init() 498 void role_datum_destroy(role_datum_t * x) in role_datum_destroy() 730 role_datum_t *role; in roles_init() 732 role = calloc(1, sizeof(role_datum_t)); in roles_init() 906 role_datum_t *role; in policydb_role_cache() 908 role = (role_datum_t *) datum; in policydb_role_cache() 1001 role_datum_t *role; in role_index() 1003 role = (role_datum_t *) datum; in role_index() 1213 p->role_val_to_struct = (role_datum_t **) in policydb_index_others() [all …]
|
D | hierarchy.c | 520 role_datum_t *r = (role_datum_t *) d; in bounds_check_role_callback() 521 role_datum_t *rp = NULL; in bounds_check_role_callback()
|
D | genusers.c | 42 role_datum_t *roldatum;
|
D | users.c | 122 role_datum_t *roldatum; in sepol_user_modify()
|
D | services.c | 396 role_datum_t *r1, *r2; in constraint_expr_eval_reason() 1634 role_datum_t *role; in convert_context() 1658 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context() 2170 role_datum_t *role; in sepol_get_user_sids()
|
D | write.c | 1058 role_datum_t *role; in role_write() 1065 role = (role_datum_t *) datum; in role_write() 2064 role_datum_t *role = datum; in role_attr_uncount()
|
D | module_to_cil.c | 178 role_datum_t *role; 290 role_datum_t *role = data; in roles_gather_map()
|
D | kernel_to_cil.c | 1244 role_datum_t *role; in write_role_attributes_to_cil()
|
D | kernel_to_conf.c | 1218 role_datum_t *role; in write_role_attributes_to_conf()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 147 } role_datum_t; typedef 544 role_datum_t **role_val_to_struct; 667 extern void role_datum_init(role_datum_t * x); 668 extern void role_datum_destroy(role_datum_t * x);
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 99 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum() 378 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb() 411 role_datum_t *sepol_role = NULL; in cil_role_bounds_to_policydb() 412 role_datum_t *sepol_parent = NULL; in cil_role_bounds_to_policydb() 436 role_datum_t *sepol_role = NULL; in cil_roletype_to_policydb() 741 role_datum_t *sepol_role = NULL; in cil_userrole_to_policydb() 2347 role_datum_t *sepol_src = NULL; in cil_roletrans_to_policydb() 2351 role_datum_t *sepol_result = NULL; in cil_roletrans_to_policydb() 2434 role_datum_t *sepol_src = NULL; in cil_roleallow_to_policydb() 2435 role_datum_t *sepol_tgt = NULL; in cil_roleallow_to_policydb() [all …]
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 524 role_datum_t *role; in role_display_callback() 527 role = (role_datum_t *) datum; in role_display_callback()
|