Searched refs:comdatum (Results 1 – 14 of 14) sorted by relevance
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 493 common_datum_t *comdatum = 0; in define_common_perms() local 508 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 509 if (comdatum) { in define_common_perms() 513 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms() 514 if (!comdatum) { in define_common_perms() 518 memset(comdatum, 0, sizeof(common_datum_t)); in define_common_perms() 520 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 530 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms() 531 if (symtab_init(&comdatum->permissions, PERM_SYMTAB_SIZE)) { in define_common_perms() 543 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms() [all …]
|
D | checkpolicy.c | 787 if (!cladatum->comdatum && !cladatum->permissions.nprim) { in main() 804 if (!ret && cladatum->comdatum) { in main() 808 comdatum-> in main()
|
D | module_compiler.c | 838 if (!perm && datum->comdatum) in require_class() 840 hashtab_search(datum->comdatum->permissions.table, in require_class()
|
/third_party/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 | 104 if (!rc && cladatum->comdatum) { in sepol_av_to_string() 105 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
|
D | policydb.c | 1006 common_datum_t *comdatum; in common_index() local 1008 comdatum = (common_datum_t *) datum; in common_index() 1010 if (!value_isvalid(comdatum->s.value, p->p_commons.nprim)) in common_index() 1012 if (p->p_common_val_to_name[comdatum->s.value - 1] != NULL) in common_index() 1014 p->p_common_val_to_name[comdatum->s.value - 1] = (char *)key; in common_index() 1311 common_datum_t *comdatum; in common_destroy() local 1315 comdatum = (common_datum_t *) datum; in common_destroy() 1316 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy() 1317 hashtab_destroy(comdatum->permissions.table); in common_destroy() 2096 common_datum_t *comdatum; in common_read() local [all …]
|
D | services.c | 1221 if (tclass_datum->comdatum == NULL) in sepol_string_to_av_perm() 1225 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1551 if ((cladatum->comdatum && !cladatum2->comdatum) || in validate_class() 1552 (!cladatum->comdatum && cladatum2->comdatum)) { in validate_class() 1557 if (cladatum->comdatum) { in validate_class() 1559 (cladatum->comdatum->permissions.table, validate_perm, in validate_class() 1560 cladatum2->comdatum->permissions.table)) { in validate_class()
|
D | write.c | 948 common_datum_t *comdatum; in common_write() local 954 comdatum = (common_datum_t *) datum; in common_write() 959 buf[items++] = cpu_to_le32(comdatum->s.value); in common_write() 960 buf[items++] = cpu_to_le32(comdatum->permissions.nprim); in common_write() 961 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel); in common_write() 970 if (hashtab_map(comdatum->permissions.table, perm_write, pd)) in common_write()
|
D | link.c | 139 if (dest_perm == NULL && dest_class->comdatum != NULL) { in permission_copy_callback() 141 hashtab_search(dest_class->comdatum->permissions.table, in permission_copy_callback() 1991 if (fparg.key == NULL && cladatum->comdatum != NULL) { in is_decl_requires_met() 1992 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met()
|
D | policydb_validate.c | 372 if (class->comdatum && validate_common_datum(handle, class->comdatum, flavors)) in validate_class_datum()
|
D | expand.c | 517 new_class->comdatum = in class_copy_callback() 520 if (!new_class->comdatum) { in class_copy_callback() 526 new_class->comdatum->permissions.nprim; in class_copy_callback()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 116 common_datum_t *comdatum; /* common datum */ member
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 330 sepol_class->comdatum = sepol_common; in cil_classorder_to_policydb() 1302 sepol_common = sepol_class->comdatum; in __perm_str_to_datum()
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 54142 struct common_datum *comdatum; member
|