Home
last modified time | relevance | path

Searched refs:SYM_LEVELS (Results 1 – 9 of 9) sorted by relevance

/third_party/selinux/libsepol/src/
Dpolicydb_validate.c73 if (validate_init(&flavors[SYM_LEVELS], p->p_sens_val_to_name, p->p_levels.nprim)) in validate_array_init()
602 return validate_mls_level(level->level, &flavors[SYM_LEVELS], &flavors[SYM_CATS]); in validate_level_datum()
624 if (validate_mls_semantic_range(&user->range, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_user_datum()
626 if (validate_mls_semantic_level(&user->dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_user_datum()
628 …cy_type != POLICY_MOD && validate_mls_range(&user->exp_range, &flavors[SYM_LEVELS], &flavors[SYM_C… in validate_user_datum()
630 …ype != POLICY_MOD && validate_mls_level(&user->exp_dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_C… in validate_user_datum()
1121 if (mls && validate_mls_range(&con->range, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_context()
1242 if (validate_mls_semantic_range(&range_trans->trange, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_range_trans_rules()
1265 if (validate_ebitmap(&scope_index->p_sens_scope, &flavors[SYM_LEVELS])) in validate_scope_index()
1391 if (validate_mls_range(r, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_range_transition()
Dlink.c705 state->cur->map[SYM_LEVELS][level->level->sens - 1] = in sens_copy_callback()
1045 assert(mod->map[SYM_LEVELS][src->sens - 1]); in mls_level_convert()
1046 dst->sens = mod->map[SYM_LEVELS][src->sens - 1]; in mls_level_convert()
Dexpand.c1170 if (!is_id_enabled(id, state->base, SYM_LEVELS)) { in sens_copy_callback()
Dmodule_to_cil.c3471 if (sym == SYM_LEVELS) { in declared_scopes_to_cil()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h399 #define SYM_LEVELS 6 macro
437 #define p_sens_scope scope[SYM_LEVELS]
531 #define p_levels symtab[SYM_LEVELS]
542 #define p_sens_val_to_name sym_val_to_name[SYM_LEVELS]
/third_party/selinux/checkpolicy/
Dmodule_compiler.c61 [SYM_LEVELS] = "level",
174 if (symbol_type == SYM_LEVELS) { in create_symbol()
1063 retval = require_symbol(SYM_LEVELS, id, level, in require_sens()
1072 print_error_msg(retval, SYM_LEVELS); in require_sens()
Dpolicy_define.c747 ret = declare_symbol(SYM_LEVELS, id, datum, &value, &value); in define_sens()
784 ret = declare_symbol(SYM_LEVELS, id, aliasdatum, NULL, &value); in define_sens()
/third_party/selinux/libsepol/tests/
Dtest-common.c128 CU_ASSERT(p->sym_val_to_name[SYM_LEVELS][d->level->sens - 1] == (char *)key); in level_test_index()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c865 rc = symtab_insert(pdb, SYM_LEVELS, key, sepol_level, SCOPE_DECL, 0, &value); in cil_sensitivityorder_to_policydb()
897 rc = symtab_insert(pdb, SYM_LEVELS, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_sensalias_to_policydb()