Searched refs:p_cats (Results 1 – 10 of 10) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | mls.c | 293 if (i > p->p_cats.nprim) in mls_context_isvalid() 383 p_cats.table, in mls_context_to_sid() 399 hashtab_search(policydb->p_cats. in mls_context_to_sid() 584 (cat_datum_t *) hashtab_search(newp->p_cats. in mls_convert_context()
|
D | kernel_to_conf.c | 916 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_conf() 924 cat_alias_map = calloc(sizeof(*cat_alias_map), pdb->p_cats.nprim); in write_category_rules_to_conf() 933 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 958 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf() 961 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 982 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_conf()
|
D | kernel_to_cil.c | 927 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil() 935 for (i=0; i < pdb->p_cats.nprim; i++) { in write_category_rules_to_cil() 947 rc = hashtab_map(pdb->p_cats.table, map_count_category_aliases, &num); in write_category_rules_to_cil() 963 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_cil() 979 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil()
|
D | policydb_validate.c | 64 if (validate_init(&flavors[SYM_CATS], p->p_cat_val_to_name, p->p_cats.nprim)) in validate_array_init()
|
D | expand.c | 1236 state->out->p_cats.nprim++; in cats_copy_callback() 1237 if (hashtab_insert(state->out->p_cats.table, in cats_copy_callback() 3060 if (hashtab_map(state.base->p_cats.table, cats_copy_callback, &state)) in expand_module()
|
D | policydb.c | 1107 if (!value_isvalid(catdatum->s.value, p->p_cats.nprim)) in cat_index() 1226 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
|
D | link.c | 719 base_cat = hashtab_search(state->base->p_cats.table, id); in cat_copy_callback()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 1074 (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() 4130 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories() 4138 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories() 4151 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_categories() 4192 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories() 4201 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories() 4209 cdatum = (cat_datum_t *) hashtab_search(policydbp->p_cats.table, in parse_semantic_categories()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 531 #define p_cats symtab[SYM_CATS] macro
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 125 *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()
|