Searched refs:comdatum (Results 1 – 13 of 13) sorted by relevance
/external/selinux/libsepol/src/ |
D | avrule_block.c | 207 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled() 211 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
|
D | util.c | 100 if (!rc && cladatum->comdatum) { in sepol_av_to_string() 101 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
|
D | policydb.c | 968 common_datum_t *comdatum; in common_index() local 970 comdatum = (common_datum_t *) datum; in common_index() 972 if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim) in common_index() 974 if (p->p_common_val_to_name[comdatum->s.value - 1] != NULL) in common_index() 976 p->p_common_val_to_name[comdatum->s.value - 1] = (char *)key; in common_index() 1273 common_datum_t *comdatum; in common_destroy() local 1277 comdatum = (common_datum_t *) datum; in common_destroy() 1278 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy() 1279 hashtab_destroy(comdatum->permissions.table); in common_destroy() 2082 common_datum_t *comdatum; in common_read() local [all …]
|
D | services.c | 1261 if (tclass_datum->comdatum == NULL) in sepol_string_to_av_perm() 1265 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1568 if ((cladatum->comdatum && !cladatum2->comdatum) || in validate_class() 1569 (!cladatum->comdatum && cladatum2->comdatum)) { in validate_class() 1574 if (cladatum->comdatum) { in validate_class() 1576 (cladatum->comdatum->permissions.table, validate_perm, in validate_class() 1577 cladatum2->comdatum->permissions.table)) { in validate_class()
|
D | write.c | 883 common_datum_t *comdatum; in common_write() local 889 comdatum = (common_datum_t *) datum; in common_write() 894 buf[items++] = cpu_to_le32(comdatum->s.value); in common_write() 895 buf[items++] = cpu_to_le32(comdatum->permissions.nprim); in common_write() 896 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel); in common_write() 905 if (hashtab_map(comdatum->permissions.table, perm_write, pd)) in common_write()
|
D | link.c | 138 if (dest_perm == NULL && dest_class->comdatum != NULL) { in permission_copy_callback() 140 hashtab_search(dest_class->comdatum->permissions.table, in permission_copy_callback() 2064 if (fparg.key == NULL && cladatum->comdatum != NULL) { in is_decl_requires_met() 2065 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met()
|
D | expand.c | 484 new_class->comdatum = in class_copy_callback() 487 if (!new_class->comdatum) { in class_copy_callback() 493 new_class->comdatum->permissions.nprim; in class_copy_callback()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 498 common_datum_t *comdatum = 0; in define_common_perms() local 513 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 514 if (comdatum) { in define_common_perms() 518 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms() 519 if (!comdatum) { in define_common_perms() 523 memset(comdatum, 0, sizeof(common_datum_t)); in define_common_perms() 525 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 535 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms() 536 if (symtab_init(&comdatum->permissions, PERM_SYMTAB_SIZE)) { in define_common_perms() 548 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms() [all …]
|
D | checkpolicy.c | 754 if (!cladatum->comdatum && !cladatum->permissions.nprim) { in main() 771 if (!ret && cladatum->comdatum) { in main() 775 comdatum-> in main()
|
D | module_compiler.c | 837 if (!perm && datum->comdatum) in require_class() 839 hashtab_search(datum->comdatum->permissions.table, in require_class()
|
/external/selinux/python/audit2allow/ |
D | sepolgen-ifgen-attr-helper.c | 72 if (!rc && cladatum->comdatum) { in render_access_mask() 73 rc = hashtab_map(cladatum->comdatum-> in render_access_mask()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 116 common_datum_t *comdatum; /* common datum */ member
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 339 sepol_class->comdatum = sepol_common; in cil_classorder_to_policydb() 1267 sepol_common = sepol_class->comdatum; in __perm_str_to_datum()
|