Searched refs:comdatum (Results 1 – 12 of 12) sorted by relevance
/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 | 99 if (!rc && cladatum->comdatum) { in sepol_av_to_string() 100 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
|
D | policydb.c | 994 common_datum_t *comdatum; in common_index() local 996 comdatum = (common_datum_t *) datum; in common_index() 998 if (!value_isvalid(comdatum->s.value, p->p_commons.nprim)) in common_index() 1000 if (p->p_common_val_to_name[comdatum->s.value - 1] != NULL) in common_index() 1002 p->p_common_val_to_name[comdatum->s.value - 1] = (char *)key; in common_index() 1298 common_datum_t *comdatum; in common_destroy() local 1302 comdatum = (common_datum_t *) datum; in common_destroy() 1303 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy() 1304 hashtab_destroy(comdatum->permissions.table); in common_destroy() 2083 common_datum_t *comdatum; in common_read() local [all …]
|
D | services.c | 1220 if (tclass_datum->comdatum == NULL) in sepol_string_to_av_perm() 1224 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1544 if ((cladatum->comdatum && !cladatum2->comdatum) || in validate_class() 1545 (!cladatum->comdatum && cladatum2->comdatum)) { in validate_class() 1550 if (cladatum->comdatum) { in validate_class() 1552 (cladatum->comdatum->permissions.table, validate_perm, in validate_class() 1553 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 | 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 | 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/checkpolicy/ |
D | policy_define.c | 494 common_datum_t *comdatum = 0; in define_common_perms() local 509 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 510 if (comdatum) { in define_common_perms() 514 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms() 515 if (!comdatum) { in define_common_perms() 519 memset(comdatum, 0, sizeof(common_datum_t)); in define_common_perms() 521 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 531 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms() 532 if (symtab_init(&comdatum->permissions, PERM_SYMTAB_SIZE)) { in define_common_perms() 544 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 | 837 if (!perm && datum->comdatum) in require_class() 839 hashtab_search(datum->comdatum->permissions.table, in require_class()
|
/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() 1220 sepol_common = sepol_class->comdatum; in __perm_str_to_datum()
|