Home
last modified time | relevance | path

Searched refs:p_cats (Results 1 – 9 of 9) sorted by relevance

/external/selinux/libsepol/src/
Dmls.c294 if (i > p->p_cats.nprim) in mls_context_isvalid()
385 p_cats.table, in mls_context_to_sid()
401 hashtab_search(policydb->p_cats. in mls_context_to_sid()
587 (cat_datum_t *) hashtab_search(newp->p_cats. in mls_convert_context()
Dkernel_to_cil.c911 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil()
914 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
927 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil()
930 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
947 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_cil()
959 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
970 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
Dkernel_to_conf.c897 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_conf()
905 cat_alias_map = calloc(sizeof(*cat_alias_map), pdb->p_cats.nprim); in write_category_rules_to_conf()
914 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf()
935 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf()
938 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf()
959 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf()
Dexpand.c1205 state->out->p_cats.nprim++; in cats_copy_callback()
1206 if (hashtab_insert(state->out->p_cats.table, in cats_copy_callback()
3103 if (hashtab_map(state.base->p_cats.table, cats_copy_callback, &state)) in expand_module()
Dpolicydb.c1082 if (!catdatum->s.value || catdatum->s.value > p->p_cats.nprim) in cat_index()
1201 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
Dlink.c719 base_cat = hashtab_search(state->base->p_cats.table, id); in cat_copy_callback()
/external/selinux/checkpolicy/
Dpolicy_define.c1078 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1089 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1107 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
4205 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4213 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4226 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4267 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4276 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4284 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h529 #define p_cats symtab[SYM_CATS] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c134 *sepol_cat = hashtab_search(pdb->p_cats.table, datum->fqn); in __cil_get_sepol_cat_datum()
4068 if (cat->s.value < 1 || cat->s.value > pdb->p_cats.nprim) { in __cil_cat_val_array_insert()
4127 policydb->p_cat_val_to_name = cil_malloc(sizeof(char *) * policydb->p_cats.nprim); in __cil_policydb_val_arrays_create()
4128 rc = hashtab_map(policydb->p_cats.table, &__cil_cat_val_array_insert, policydb); in __cil_policydb_val_arrays_create()