Home
last modified time | relevance | path

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

/external/selinux/checkpolicy/
Dpolicy_define.h73 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);
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.c216 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 …]
Dpolicy_define.c2693 role_datum_t *role; in define_role_types()
2748 role_datum_t *r, *attr; in define_role_attr()
2797 role_datum_t *r, *attr; in define_roleattribute()
2859 role_datum_t *merge_roles_dom(role_datum_t * r1, role_datum_t * r2) in merge_roles_dom()
2861 role_datum_t *new; in merge_roles_dom()
2864 return (role_datum_t *) 1; /* any non-NULL value */ in merge_roles_dom()
2867 new = malloc(sizeof(role_datum_t)); in merge_roles_dom()
2872 memset(new, 0, sizeof(role_datum_t)); in merge_roles_dom()
2904 role_datum_t *rdp = (role_datum_t *) arg; in dominate_role_recheck()
2905 role_datum_t *rdatum = (role_datum_t *) datum; in dominate_role_recheck()
[all …]
Dpolicy_parse.y528 { $$ = merge_roles_dom((role_datum_t*)$1, (role_datum_t*)$2); if ($$ == 0) return -1;}
533 {$$ = define_role_dom((role_datum_t*)$4); if ($$ == 0) return -1;}
/external/selinux/libsepol/tests/
Dtest-linker-roles.c55 static void only_dominates_self(policydb_t * p, role_datum_t * role) in only_dominates_self()
71 role_datum_t *role; in base_role_tests()
100 role_datum_t *role; in module_role_tests()
Dtest-common.c80 role_datum_t *d = (role_datum_t *) datum; in role_test_index()
186 role_datum_t *test_role_type_set(policydb_t * p, const char *id, avrule_decl_t * decl, const char *… in test_role_type_set()
190 role_datum_t *role; in test_role_type_set()
Dtest-common.h65 extern role_datum_t *test_role_type_set(policydb_t * p, const char *id, avrule_decl_t * decl, const…
/external/selinux/libsepol/src/
Dcontext.c38 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()
793 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
794 role_datum_t *dest; in role_bounds_copy_callback()
1091 role_datum_t *role, *dest_role = NULL; in role_fix_callback()
1098 role = (role_datum_t *) datum; in role_fix_callback()
2395 role_datum_t *role, *sub_attr; in expand_role_attributes()
2401 role = (role_datum_t *)datum; in expand_role_attributes()
2453 role_datum_t *decl_role, *base_role; in populate_decl_roleattributes()
[all …]
Dexpand.c562 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
563 role_datum_t *dest; in role_bounds_copy_callback()
706 role_datum_t *role = (role_datum_t *) datum; in role_remap_dominates()
731 role_datum_t *role, *new_role, *regular_role; in role_fix_callback()
738 role = (role_datum_t *)datum; in role_fix_callback()
758 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
776 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback()
797 role_datum_t *role; in role_copy_callback()
798 role_datum_t *new_role; in role_copy_callback()
803 role = (role_datum_t *) datum; in role_copy_callback()
[all …]
Dpolicydb.c511 void role_datum_init(role_datum_t * x) in role_datum_init()
513 memset(x, 0, sizeof(role_datum_t)); in role_datum_init()
520 void role_datum_destroy(role_datum_t * x) in role_datum_destroy()
752 role_datum_t *role; in roles_init()
754 role = calloc(1, sizeof(role_datum_t)); in roles_init()
928 role_datum_t *role; in policydb_role_cache()
930 role = (role_datum_t *) datum; in policydb_role_cache()
1023 role_datum_t *role; in role_index()
1025 role = (role_datum_t *) datum; in role_index()
1235 p->role_val_to_struct = (role_datum_t **) in policydb_index_others()
[all …]
Dhierarchy.c516 role_datum_t *r = (role_datum_t *) d; in bounds_check_role_callback()
517 role_datum_t *rp = NULL; in bounds_check_role_callback()
Dusers.c120 role_datum_t *roldatum; in sepol_user_modify()
Dservices.c396 role_datum_t *r1, *r2; in constraint_expr_eval_reason()
1630 role_datum_t *role; in convert_context()
1654 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
2166 role_datum_t *role; in sepol_get_user_sids()
Dwrite.c1070 role_datum_t *role; in role_write()
1077 role = (role_datum_t *) datum; in role_write()
2093 role_datum_t *role = datum; in role_attr_uncount()
Dmodule_to_cil.c179 role_datum_t *role;
291 role_datum_t *role = data; in roles_gather_map()
Dkernel_to_conf.c1229 role_datum_t *role; in write_role_attributes_to_conf()
Dkernel_to_cil.c1243 role_datum_t *role; in write_role_attributes_to_cil()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h148 } role_datum_t; typedef
545 role_datum_t **role_val_to_struct;
670 extern void role_datum_init(role_datum_t * x);
671 extern void role_datum_destroy(role_datum_t * x);
/external/selinux/libsepol/cil/src/
Dcil_binary.c94 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t in __cil_get_sepol_role_datum()
373 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()
406 role_datum_t *sepol_role = NULL; in cil_role_bounds_to_policydb()
407 role_datum_t *sepol_parent = NULL; in cil_role_bounds_to_policydb()
431 role_datum_t *sepol_role = NULL; in cil_roletype_to_policydb()
732 role_datum_t *sepol_role = NULL; in cil_userrole_to_policydb()
2300 role_datum_t *sepol_src = NULL; in cil_roletrans_to_policydb()
2304 role_datum_t *sepol_result = NULL; in cil_roletrans_to_policydb()
2383 role_datum_t *sepol_src = NULL; in cil_roleallow_to_policydb()
2384 role_datum_t *sepol_tgt = NULL; in cil_roleallow_to_policydb()
[all …]
/external/selinux/checkpolicy/test/
Ddismod.c524 role_datum_t *role; in role_display_callback()
527 role = (role_datum_t *) datum; in role_display_callback()