Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Dmls.c281 || c->range.level[l].sens > p->p_levels.nprim) in mls_context_isvalid()
288 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, key); in mls_context_isvalid()
357 (level_datum_t *) hashtab_search(policydb->p_levels.table, in mls_context_to_sid()
566 (level_datum_t *) hashtab_search(newp->p_levels.table, in mls_convert_context()
Dkernel_to_conf.c802 rc = strs_init(&strs, pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
807 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_conf()
815 sens_alias_map = calloc(sizeof(*sens_alias_map), pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
824 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
849 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
852 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
874 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
877 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
896 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
1111 for (i=0; i < pdb->p_levels.nprim; i++) { in write_level_rules_to_conf()
[all …]
Dkernel_to_cil.c844 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
852 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
864 rc = hashtab_map(pdb->p_levels.table, map_count_sensitivity_aliases, &num); in write_sensitivity_rules_to_cil()
880 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_cil()
896 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
1125 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivitycategory_rules_to_cil()
1128 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivitycategory_rules_to_cil()
Dexpand.c933 if (sl->sens > p->p_levels.nprim || !p->p_sens_val_to_name[sl->sens - 1]) in mls_semantic_level_expand()
937 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
1194 state->out->p_levels.nprim++; in sens_copy_callback()
1196 if (hashtab_insert(state->out->p_levels.table, in sens_copy_callback()
3086 if (hashtab_map(state.base->p_levels.table, sens_copy_callback, &state)) in expand_module()
Dpolicydb_validate.c73 if (validate_init(&flavors[SYM_LEVELS], p->p_sens_val_to_name, p->p_levels.nprim)) in validate_array_init()
753 if (p->mls && hashtab_map(p->p_levels.table, validate_level_datum, flavors)) in validate_datum_array_entries()
Dpolicydb.c1100 if (!value_isvalid(levdatum->level->sens, p->p_levels.nprim)) in sens_index()
1238 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
Dlink.c679 base_level = hashtab_search(state->base->p_levels.table, id); in sens_copy_callback()
/third_party/selinux/checkpolicy/
Dpolicy_define.c853 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
873 if (order != policydbp->p_levels.nprim) { in define_dominance()
1045 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1125 (policydbp->p_levels.table, clone_level, levdatum->level)) { in define_level()
4335 hashtab_search(policydbp->p_levels.table, in define_user()
4360 hashtab_search(policydbp->p_levels.table, in define_user()
4518 hashtab_search(policydbp->p_levels.table, in parse_security_context()
5795 levdatum = hashtab_search(policydbp->p_levels.table, id); in define_range_trans()
Dcheckpolicy.c619 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h531 #define p_levels symtab[SYM_LEVELS] macro
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c136 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum()
4189 if (level->level->sens < 1 || level->level->sens > pdb->p_levels.nprim) { in __cil_level_val_array_insert()
4255 policydb->p_sens_val_to_name = cil_malloc(sizeof(char *) * policydb->p_levels.nprim); in __cil_policydb_val_arrays_create()
4256 rc = hashtab_map(policydb->p_levels.table, &__cil_level_val_array_insert, policydb); in __cil_policydb_val_arrays_create()