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.c894 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil()
897 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
910 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil()
913 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
930 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_cil()
942 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
953 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
Dkernel_to_conf.c880 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_conf()
888 cat_alias_map = calloc(sizeof(*cat_alias_map), pdb->p_cats.nprim); in write_category_rules_to_conf()
897 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf()
918 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf()
921 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf()
942 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf()
Dexpand.c1204 state->out->p_cats.nprim++; in cats_copy_callback()
1205 if (hashtab_insert(state->out->p_cats.table, in cats_copy_callback()
3080 if (hashtab_map(state.base->p_cats.table, cats_copy_callback, &state)) in expand_module()
Dpolicydb.c1043 if (!catdatum->s.value || catdatum->s.value > p->p_cats.nprim) in cat_index()
1162 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.c1074 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1085 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
1103 (cat_datum_t *) hashtab_search(policydbp->p_cats. in define_level()
4194 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4202 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4215 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories()
4256 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4265 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
4273 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h516 #define p_cats symtab[SYM_CATS] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c130 *sepol_cat = hashtab_search(pdb->p_cats.table, datum->fqn); in __cil_get_sepol_cat_datum()
3983 if (cat->s.value < 1 || cat->s.value > pdb->p_cats.nprim) { in __cil_cat_val_array_insert()
4042 policydb->p_cat_val_to_name = cil_malloc(sizeof(char *) * policydb->p_cats.nprim); in __cil_policydb_val_arrays_create()
4043 rc = hashtab_map(policydb->p_cats.table, &__cil_cat_val_array_insert, policydb); in __cil_policydb_val_arrays_create()