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()
359 (level_datum_t *) hashtab_search(policydb->p_levels.table, in mls_context_to_sid()
568 (level_datum_t *) hashtab_search(newp->p_levels.table, in mls_convert_context()
Dkernel_to_conf.c748 rc = strs_init(&strs, pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
753 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_conf()
761 sens_alias_map = calloc(sizeof(*sens_alias_map), pdb->p_levels.nprim); in write_sensitivity_rules_to_conf()
770 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
791 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
794 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
816 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
819 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf()
838 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_conf()
875 rc = strs_init(&strs, pdb->p_levels.nprim); in write_category_rules_to_conf()
[all …]
Dkernel_to_cil.c783 rc = strs_init(&strs, pdb->p_levels.nprim); in write_sensitivity_rules_to_cil()
789 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
792 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
805 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivity_rules_to_cil()
808 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
825 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_cil()
837 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
848 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil()
888 rc = strs_init(&strs, pdb->p_levels.nprim); in write_category_rules_to_cil()
1076 for (i=0; i < pdb->p_levels.nprim; i++) { in write_sensitivitycategory_rules_to_cil()
[all …]
Dexpand.c901 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
1158 state->out->p_levels.nprim++; in sens_copy_callback()
1160 if (hashtab_insert(state->out->p_levels.table, in sens_copy_callback()
3078 if (hashtab_map(state.base->p_levels.table, sens_copy_callback, &state)) in expand_module()
Dpolicydb.c1024 levdatum->level->sens > p->p_levels.nprim) in sens_index()
1162 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.c854 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
874 if (order != policydbp->p_levels.nprim) { in define_dominance()
1046 levdatum = (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_level()
1121 (policydbp->p_levels.table, clone_level, levdatum->level)) { in define_level()
4343 hashtab_search(policydbp->p_levels.table, in define_user()
4368 hashtab_search(policydbp->p_levels.table, in define_user()
4526 hashtab_search(policydbp->p_levels.table, in parse_security_context()
5554 levdatum = hashtab_search(policydbp->p_levels.table, id); in define_range_trans()
Dcheckpolicy.c596 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h515 #define p_levels symtab[SYM_LEVELS] macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c141 *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()