Searched refs:comdatum (Results 1 – 13 of 13) sorted by relevance
/external/selinux/libsepol/src/ |
D | avrule_block.c | 208 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled() 212 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 | 990 common_datum_t *comdatum; in common_index() local 992 comdatum = (common_datum_t *) datum; in common_index() 994 if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim) in common_index() 996 if (p->p_common_val_to_name[comdatum->s.value - 1] != NULL) in common_index() 998 p->p_common_val_to_name[comdatum->s.value - 1] = (char *)key; in common_index() 1295 common_datum_t *comdatum; in common_destroy() local 1299 comdatum = (common_datum_t *) datum; in common_destroy() 1300 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy() 1301 hashtab_destroy(comdatum->permissions.table); in common_destroy() 2100 common_datum_t *comdatum; in common_read() local [all …]
|
D | services.c | 1257 if (tclass_datum->comdatum == NULL) in sepol_string_to_av_perm() 1261 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1564 if ((cladatum->comdatum && !cladatum2->comdatum) || in validate_class() 1565 (!cladatum->comdatum && cladatum2->comdatum)) { in validate_class() 1570 if (cladatum->comdatum) { in validate_class() 1572 (cladatum->comdatum->permissions.table, validate_perm, in validate_class() 1573 cladatum2->comdatum->permissions.table)) { in validate_class()
|
D | write.c | 888 common_datum_t *comdatum; in common_write() local 894 comdatum = (common_datum_t *) datum; in common_write() 899 buf[items++] = cpu_to_le32(comdatum->s.value); in common_write() 900 buf[items++] = cpu_to_le32(comdatum->permissions.nprim); in common_write() 901 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel); in common_write() 910 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() 2038 if (fparg.key == NULL && cladatum->comdatum != NULL) { in is_decl_requires_met() 2039 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met()
|
D | expand.c | 482 new_class->comdatum = in class_copy_callback() 485 if (!new_class->comdatum) { in class_copy_callback() 491 new_class->comdatum->permissions.nprim; in class_copy_callback()
|
/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/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 | 772 if (!cladatum->comdatum && !cladatum->permissions.nprim) { in main() 789 if (!ret && cladatum->comdatum) { in main() 793 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/libsepol/include/sepol/policydb/ |
D | policydb.h | 116 common_datum_t *comdatum; /* common datum */ member
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 334 sepol_class->comdatum = sepol_common; in cil_classorder_to_policydb() 1236 sepol_common = sepol_class->comdatum; in __perm_str_to_datum()
|