Home
last modified time | relevance | path

Searched refs:comdatum (Results 1 – 11 of 11) sorted by relevance

/external/libsepol/src/
Dutil.c95 if (!rc && cladatum->comdatum) { in sepol_av_to_string()
96 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
Davrule_block.c191 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled()
195 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
Dpolicydb.c767 common_datum_t *comdatum; in common_index() local
769 comdatum = (common_datum_t *) datum; in common_index()
771 if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim) in common_index()
773 p->p_common_val_to_name[comdatum->s.value - 1] = (char *)key; in common_index()
1051 common_datum_t *comdatum; in common_destroy() local
1055 comdatum = (common_datum_t *) datum; in common_destroy()
1056 hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy()
1057 hashtab_destroy(comdatum->permissions.table); in common_destroy()
1858 common_datum_t *comdatum; in common_read() local
1864 comdatum = calloc(1, sizeof(common_datum_t)); in common_read()
[all …]
Dservices.c803 if ((cladatum->comdatum && !cladatum2->comdatum) || in validate_class()
804 (!cladatum->comdatum && cladatum2->comdatum)) { in validate_class()
809 if (cladatum->comdatum) { in validate_class()
811 (cladatum->comdatum->permissions.table, validate_perm, in validate_class()
812 cladatum2->comdatum->permissions.table)) { in validate_class()
Dwrite.c833 common_datum_t *comdatum; in common_write() local
839 comdatum = (common_datum_t *) datum; in common_write()
844 buf[items++] = cpu_to_le32(comdatum->s.value); in common_write()
845 buf[items++] = cpu_to_le32(comdatum->permissions.nprim); in common_write()
846 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel); in common_write()
855 if (hashtab_map(comdatum->permissions.table, perm_write, pd)) in common_write()
Dlink.c138 if (dest_perm == NULL && dest_class->comdatum != NULL) { in permission_copy_callback()
140 hashtab_search(dest_class->comdatum->permissions.table, in permission_copy_callback()
1994 if (fparg.key == NULL && cladatum->comdatum != NULL) in is_decl_requires_met()
1995 hashtab_map(cladatum->comdatum->permissions. in is_decl_requires_met()
Dexpand.c427 new_class->comdatum = in class_copy_callback()
430 if (!new_class->comdatum) { in class_copy_callback()
436 new_class->comdatum->permissions.nprim; in class_copy_callback()
/external/checkpolicy/
Dpolicy_define.c357 common_datum_t *comdatum = 0; in define_common_perms() local
372 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
373 if (comdatum) { in define_common_perms()
377 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms()
378 if (!comdatum) { in define_common_perms()
382 memset(comdatum, 0, sizeof(common_datum_t)); in define_common_perms()
384 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms()
394 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms()
395 if (symtab_init(&comdatum->permissions, PERM_SYMTAB_SIZE)) { in define_common_perms()
407 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms()
[all …]
Dcheckpolicy.c690 if (!cladatum->comdatum && !cladatum->permissions.nprim) { in main()
707 if (!ret && cladatum->comdatum) { in main()
711 comdatum-> in main()
Dmodule_compiler.c816 if (!perm && datum->comdatum) in require_class()
818 hashtab_search(datum->comdatum->permissions.table, in require_class()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h110 common_datum_t *comdatum; /* common datum */ member