Home
last modified time | relevance | path

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

/aosp_15_r20/external/selinux/checkpolicy/
H A Dmodule_compiler.c211 char *role_id, role_datum_t *role) in role_implicit_bounds()
213 role_datum_t *bounds; in role_implicit_bounds()
249 static int create_role(uint32_t scope, unsigned char isattr, role_datum_t **role, char **key) in create_role()
252 role_datum_t *datum = NULL; in create_role()
312 role_datum_t *declare_role(unsigned char isattr) in declare_role()
315 role_datum_t *role = NULL; in declare_role()
316 role_datum_t *dest_role = NULL; in declare_role()
665 role_datum_t *get_local_role(char *id, uint32_t value, unsigned char isattr) in get_local_role()
667 role_datum_t *dest_roledatum; in get_local_role()
681 dest_roledatum = (role_datum_t *)malloc(sizeof(role_datum_t)); in get_local_role()
[all …]
H A 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);
H A Dpolicy_define.c2844 role_datum_t *role; in define_role_types()
2899 role_datum_t *r, *attr; in define_role_attr()
2948 role_datum_t *r, *attr; in define_roleattribute()
3014 role_datum_t *roldatum; in role_val_to_name_helper()
3016 roldatum = (role_datum_t *) datum; in role_val_to_name_helper()
3040 role_datum_t *r; in set_roles()
3077 role_datum_t *role; in define_role_trans()
3765 role_datum_t *role; in define_cexpr()
3870 (role_datum_t *) hashtab_search(policydbp-> in define_cexpr()
4139 role_datum_t *r; in set_user_roles()
[all …]
/aosp_15_r20/external/selinux/libsepol/tests/
H A Dtest-common.c81 role_datum_t *d = (role_datum_t *) datum; in role_test_index()
187 role_datum_t *test_role_type_set(policydb_t * p, const char *id, avrule_decl_t * decl, const char *… in test_role_type_set()
191 role_datum_t *role; in test_role_type_set()
H A Dtest-linker-roles.c56 static void only_dominates_self(policydb_t * p __attribute__ ((unused)), role_datum_t * role) in only_dominates_self()
72 role_datum_t *role; in base_role_tests()
101 role_datum_t *role; in module_role_tests()
H A Dtest-common.h65 extern role_datum_t *test_role_type_set(policydb_t * p, const char *id, avrule_decl_t * decl, const…
/aosp_15_r20/external/selinux/libsepol/src/
H A Dexpand.c78 role_datum_t *role; in ebitmap_expand_roles()
597 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
598 role_datum_t *dest; in role_bounds_copy_callback()
741 role_datum_t *role = (role_datum_t *) datum; in role_remap_dominates()
766 role_datum_t *role, *new_role, *regular_role; in role_fix_callback()
773 role = (role_datum_t *)datum; in role_fix_callback()
793 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
811 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback()
832 role_datum_t *role; in role_copy_callback()
833 role_datum_t *new_role; in role_copy_callback()
[all …]
H A Dlink.c353 role_datum_t *role, *base_role, *new_role = NULL; in role_copy_callback()
356 role = (role_datum_t *) datum; in role_copy_callback()
386 (role_datum_t *) malloc(sizeof(*new_role))) == NULL) { in role_copy_callback()
795 role_datum_t *role = (role_datum_t *) datum; in role_bounds_copy_callback()
796 role_datum_t *dest; in role_bounds_copy_callback()
1086 role_datum_t *role, *dest_role = NULL; in role_fix_callback()
1092 role = (role_datum_t *) datum; in role_fix_callback()
2355 role_datum_t *role, *sub_attr; in expand_role_attributes()
2361 role = (role_datum_t *)datum; in expand_role_attributes()
2413 role_datum_t *decl_role, *base_role; in populate_decl_roleattributes()
[all …]
H A 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()
H A Dpolicydb.c531 void role_datum_init(role_datum_t * x) in role_datum_init()
533 memset(x, 0, sizeof(role_datum_t)); in role_datum_init()
540 void role_datum_destroy(role_datum_t * x) in role_datum_destroy()
772 role_datum_t *role; in roles_init()
774 role = calloc(1, sizeof(role_datum_t)); in roles_init()
944 role_datum_t *role; in policydb_role_cache()
946 role = (role_datum_t *) datum; in policydb_role_cache()
1039 role_datum_t *role; in role_index()
1041 role = (role_datum_t *) datum; in role_index()
1250 p->role_val_to_struct = (role_datum_t **) in policydb_index_others()
[all …]
H A Dhierarchy.c519 role_datum_t *r = (role_datum_t *) d; in bounds_check_role_callback()
520 role_datum_t *rp = NULL; in bounds_check_role_callback()
H A Dservices.c396 role_datum_t *r1, *r2; in constraint_expr_eval_reason()
1635 role_datum_t *role; in convert_context()
1659 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
2174 role_datum_t *role; in sepol_get_user_sids()
H A Dusers.c120 role_datum_t *roldatum; in sepol_user_modify()
H A Dwrite.c1134 role_datum_t *role; in role_write()
1141 role = (role_datum_t *) datum; in role_write()
2186 role_datum_t *role = datum; in role_attr_uncount()
H A Dmodule_to_cil.c166 role_datum_t *role;
280 role_datum_t *role = data; in roles_gather_map()
H A Dpolicydb_validate.c513 static int validate_role_datum(sepol_handle_t *handle, const role_datum_t *role, validate_t flavors… in validate_role_datum()
H A Dkernel_to_conf.c1268 role_datum_t *role; in write_role_attributes_to_conf()
H A Dkernel_to_cil.c1285 role_datum_t *role; in write_role_attributes_to_cil()
/aosp_15_r20/external/selinux/libsepol/include/sepol/policydb/
H A Dpolicydb.h148 } role_datum_t; typedef
549 role_datum_t **role_val_to_struct;
685 extern void role_datum_init(role_datum_t * x);
686 extern void role_datum_destroy(role_datum_t * x);
/aosp_15_r20/external/selinux/libsepol/cil/src/
H A Dcil_binary.c91 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t in __cil_get_sepol_role_datum()
370 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb()
403 role_datum_t *sepol_role = NULL; in cil_role_bounds_to_policydb()
404 role_datum_t *sepol_parent = NULL; in cil_role_bounds_to_policydb()
428 role_datum_t *sepol_role = NULL; in cil_roletype_to_policydb()
729 role_datum_t *sepol_role = NULL; in cil_userrole_to_policydb()
2527 role_datum_t *sepol_src = NULL; in cil_roletrans_to_policydb()
2531 role_datum_t *sepol_result = NULL; in cil_roletrans_to_policydb()
2610 role_datum_t *sepol_src = NULL; in cil_roleallow_to_policydb()
2611 role_datum_t *sepol_tgt = NULL; in cil_roleallow_to_policydb()
[all …]
/aosp_15_r20/external/selinux/checkpolicy/test/
H A Ddismod.c588 role_datum_t *role; in role_display_callback()
591 role = (role_datum_t *) datum; in role_display_callback()