Home
last modified time | relevance | path

Searched refs:p_commons (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h522 #define p_commons symtab[SYM_COMMONS] macro
/external/selinux/libsepol/src/
Dexpand.c263 state->out->p_commons.nprim++; in common_copy_callback()
266 hashtab_insert(state->out->p_commons.table, new_id, in common_copy_callback()
485 hashtab_search(state->out->p_commons.table, in class_copy_callback()
3062 (state.base->p_commons.table, common_copy_callback, &state)) { in expand_module()
Dpolicydb.c972 if (!comdatum->s.value || comdatum->s.value > p->p_commons.nprim) in common_index()
1106 calloc(p->p_commons.nprim, sizeof(char *)); in policydb_index_classes()
1110 if (hashtab_map(p->p_commons.table, common_index, p)) in policydb_index_classes()
2274 cladatum->comdatum = hashtab_search(p->p_commons.table, in class_read()
Dkernel_to_conf.c534 used = calloc(pdb->p_commons.nprim, sizeof(*used)); in write_class_and_common_rules_to_conf()
544 common = hashtab_search(pdb->p_commons.table, name); in write_class_and_common_rules_to_conf()
Dkernel_to_cil.c490 used = calloc(pdb->p_commons.nprim, sizeof(*used)); in write_class_decl_rules_to_cil()
500 common = hashtab_search(pdb->p_commons.table, name); in write_class_decl_rules_to_cil()
Dmodule_to_cil.c3776 rc = hashtab_map(pdb->p_commons.table, common_to_cil, NULL); in global_block_to_cil()
/external/selinux/checkpolicy/
Dpolicy_define.c513 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
524 ret = hashtab_insert(policydbp->p_commons.table, in define_common_perms()
535 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms()
540 policydbp->p_commons.nprim++; in define_common_perms()
631 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms()
/external/selinux/libsepol/cil/src/
Dcil_binary.c332 sepol_common = hashtab_search(pdb->p_commons.table, key); in cil_classorder_to_policydb()
3972 if (common->s.value < 1 || common->s.value > pdb->p_commons.nprim) { in __cil_common_val_array_insert()
4080 policydb->p_common_val_to_name = cil_malloc(sizeof(char *) * policydb->p_commons.nprim); in __cil_policydb_val_arrays_create()
4081 rc = hashtab_map(policydb->p_commons.table, &__cil_common_val_array_insert, policydb); in __cil_policydb_val_arrays_create()