Home
last modified time | relevance | path

Searched refs:class_datum_t (Results 1 – 16 of 16) sorted by relevance

/third_party/selinux/libsepol/src/
Davrule_block.c197 class_datum_t *cladatum; in is_perm_enabled()
203 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
Dlink.c64 class_datum_t *src_class, *dest_class;
130 class_datum_t *src_class = state->src_class; in permission_copy_callback()
131 class_datum_t *dest_class = state->dest_class; in permission_copy_callback()
209 class_datum_t *olddatum, in class_copy_default_new_object()
210 class_datum_t *newdatum) in class_copy_default_new_object()
247 class_datum_t *cladatum, *new_class = NULL; in class_copy_callback()
252 cladatum = (class_datum_t *) datum; in class_copy_callback()
288 (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_copy_callback()
2015 class_datum_t *cladatum; in is_decl_requires_met()
2081 class_datum_t *cladatum; in debug_requirements()
[all …]
Dservices.c916 class_datum_t *tclass_datum; in context_struct_compute_av()
1040 class_datum_t *tclass_datum; in sepol_validate_transition_reason_buffer()
1182 class_datum_t *tclass_datum; in sepol_string_to_security_class()
1202 class_datum_t *tclass_datum; in sepol_string_to_av_perm()
1529 class_datum_t *cladatum, *cladatum2; in validate_class()
1532 cladatum = (class_datum_t *) datum; in validate_class()
1535 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
Dkernel_to_cil.c271 class_datum_t *class, in class_constraint_rules_to_strs()
354 class_datum_t *class; in constraint_rules_to_strs()
379 class_datum_t *class; in validatetrans_rules_to_strs()
454 class_datum_t *class; in write_class_decl_rules_to_cil()
626 static int write_default_user_to_cil(FILE *out, char *class_name, class_datum_t *class) in write_default_user_to_cil()
646 static int write_default_role_to_cil(FILE *out, char *class_name, class_datum_t *class) in write_default_role_to_cil()
666 static int write_default_type_to_cil(FILE *out, char *class_name, class_datum_t *class) in write_default_type_to_cil()
686 static int write_default_range_to_cil(FILE *out, char *class_name, class_datum_t *class) in write_default_range_to_cil()
723 class_datum_t *class; in write_default_rules_to_cil()
Dkernel_to_conf.c267 class_datum_t *class, in class_constraint_rules_to_strs()
354 class_datum_t *class; in constraint_rules_to_strs()
379 class_datum_t *class; in validatetrans_rules_to_strs()
538 class_datum_t *class; in write_class_and_common_rules_to_conf()
601 static int write_default_user_to_conf(FILE *out, char *class_name, class_datum_t *class) in write_default_user_to_conf()
621 static int write_default_role_to_conf(FILE *out, char *class_name, class_datum_t *class) in write_default_role_to_conf()
641 static int write_default_type_to_conf(FILE *out, char *class_name, class_datum_t *class) in write_default_type_to_conf()
661 static int write_default_range_to_conf(FILE *out, char *class_name, class_datum_t *class) in write_default_range_to_conf()
698 class_datum_t *class; in write_default_rules_to_conf()
Dutil.c85 class_datum_t *cladatum; in sepol_av_to_string()
Dexpand.c410 class_datum_t *olddatum, in class_copy_default_new_object()
411 class_datum_t *newdatum) in class_copy_default_new_object()
450 class_datum_t *class, *new_class; in class_copy_callback()
454 class = (class_datum_t *) datum; in class_copy_callback()
465 new_class = (class_datum_t *) malloc(sizeof(class_datum_t)); in class_copy_callback()
470 memset(new_class, 0, sizeof(class_datum_t)); in class_copy_callback()
536 class_datum_t *class, *new_class; in constraint_copy_callback()
540 class = (class_datum_t *) datum; in constraint_copy_callback()
Dpolicydb.c1010 class_datum_t *cladatum; in class_index()
1012 cladatum = (class_datum_t *) datum; in class_index()
1139 p->class_val_to_struct = (class_datum_t **) in policydb_index_classes()
1140 calloc(p->p_classes.nprim, sizeof(class_datum_t *)); in policydb_index_classes()
1312 class_datum_t *cladatum; in class_destroy()
1317 cladatum = (class_datum_t *) datum; in class_destroy()
2229 class_datum_t *cladatum; in class_read()
2235 cladatum = (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_read()
4144 class_datum_t *tclass_datum; in policydb_string_to_security_class()
4158 class_datum_t *tclass_datum; in policydb_string_to_av_perm()
Dpolicydb_validate.c198 static int validate_class_datum(sepol_handle_t *handle, class_datum_t *class, validate_t flavors[]) in validate_class_datum()
Dwrite.c1029 class_datum_t *cladatum; in class_write()
1037 cladatum = (class_datum_t *) datum; in class_write()
/third_party/selinux/checkpolicy/
Dcheckpolicy.c389 class_datum_t *cladatum; in main()
776 (class_datum_t *) hashtab_search(policydb. in main()
890 (class_datum_t *) hashtab_search(policydb. in main()
1095 (class_datum_t *) hashtab_search(policydb. in main()
1191 (class_datum_t *) hashtab_search(policydb. in main()
1242 (class_datum_t *) hashtab_search(policydb. in main()
Dpolicy_define.c152 class_datum_t *datum = 0; in define_class()
167 datum = (class_datum_t *) malloc(sizeof(class_datum_t)); in define_class()
172 memset(datum, 0, sizeof(class_datum_t)); in define_class()
341 class_datum_t *cladatum; in read_classes()
366 class_datum_t *cladatum; in define_default_user()
398 class_datum_t *cladatum; in define_default_role()
430 class_datum_t *cladatum; in define_default_type()
462 class_datum_t *cladatum; in define_default_range()
587 class_datum_t *cladatum; in define_av_perms()
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
[all …]
Dmodule_compiler.c772 static void class_datum_destroy(class_datum_t * cladatum) in class_datum_destroy()
785 class_datum_t *datum = NULL; in require_class()
1178 const class_datum_t *cladatum = in is_perm_in_scope()
1179 (class_datum_t *) hashtab_search(policydbp->p_classes.table, in is_perm_in_scope()
/third_party/selinux/libsepol/tests/
Dtest-common.c70 class_datum_t *d = (class_datum_t *) datum; in class_test_index()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c112 …get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum_t **sepol_class) in __cil_get_sepol_class_datum()
299 class_datum_t *sepol_class = cil_malloc(sizeof(*sepol_class)); in cil_classorder_to_policydb()
300 memset(sepol_class, 0, sizeof(class_datum_t)); in cil_classorder_to_policydb()
1072 class_datum_t *sepol_obj = NULL; in __cil_type_rule_to_avtab()
1128 class_datum_t *sepol_obj = NULL; in __cil_typetransition_to_avtab()
1212 int __perm_str_to_datum(char *perm_str, class_datum_t *sepol_class, uint32_t *datum) in __perm_str_to_datum()
1236 int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum) in __cil_perms_to_datum()
1314 class_datum_t *sepol_class = NULL; in __cil_avrule_expand_helper()
1629 class_datum_t *sepol_obj; in __cil_avrulex_ioctl_to_policydb()
1733 class_datum_t *sepol_obj = NULL; in __cil_avrulex_to_hashtable_helper()
[all …]
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h135 } class_datum_t; typedef
545 class_datum_t **class_val_to_struct;