Home
last modified time | relevance | path

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

/external/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.c776 rc = strs_init(&strs, pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
781 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_conf()
789 sens_alias_map = calloc(sizeof(*sens_alias_map), pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
798 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
823 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
826 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
848 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
851 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
870 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
907 rc = strs_init(&strs, pdb->p_levels.nprim); in write_category_rules_to_conf()
[all …]
Dkernel_to_cil.c807 rc = strs_init(&strs, pdb->p_levels.nprim); in write_sensitivity_rules_to_cil()
813 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
816 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
829 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
832 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
849 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_cil()
861 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
872 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
912 rc = strs_init(&strs, pdb->p_levels.nprim); in write_category_rules_to_cil()
1094 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivitycategory_rules_to_cil()
[all …]
Dexpand.c898 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
1155 state->out->p_levels.nprim++; in sens_copy_callback()
1157 if (hashtab_insert(state->out->p_levels.table, in sens_copy_callback()
3058 if (hashtab_map(state.base->p_levels.table, sens_copy_callback, &state)) in expand_module()
Dpolicydb.c1085 levdatum->level->sens > p->p_levels.nprim) in sens_index()
1223 p->p_levels.nprim, p->p_cats.nprim); in policydb_index_others()
Dlink.c677 base_level = hashtab_search(state->base->p_levels.table, id); in sens_copy_callback()
/external/selinux/checkpolicy/
Dpolicy_define.c858 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
878 if (order != policydbp->p_levels.nprim) { in define_dominance()
1050 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1130 (policydbp->p_levels.table, clone_level, levdatum->level)) { in define_level()
4319 hashtab_search(policydbp->p_levels.table, in define_user()
4344 hashtab_search(policydbp->p_levels.table, in define_user()
4502 hashtab_search(policydbp->p_levels.table, in parse_security_context()
5718 levdatum = hashtab_search(policydbp->p_levels.table, id); in define_range_trans()
Dcheckpolicy.c607 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h529 #define p_levels symtab[SYM_LEVELS] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c140 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum()
3970 if (level->level->sens < 1 || level->level->sens > pdb->p_levels.nprim) { in __cil_level_val_array_insert()
4036 policydb->p_sens_val_to_name = cil_malloc(sizeof(char *) * policydb->p_levels.nprim); in __cil_policydb_val_arrays_create()
4037 rc = hashtab_map(policydb->p_levels.table, &__cil_level_val_array_insert, policydb); in __cil_policydb_val_arrays_create()