Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Dpolicydb_validate.c75 if (validate_init(&flavors[SYM_CATS], p->p_cat_val_to_name, p->p_cats.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 …pe != POLICY_MOD && validate_mls_range(&user->exp_range, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_user_datum()
630 …= POLICY_MOD && validate_mls_level(&user->exp_dfltlevel, &flavors[SYM_LEVELS], &flavors[SYM_CATS])) in validate_user_datum()
756 if (hashtab_map(p->p_cats.table, validate_datum, &flavors[SYM_CATS])) in validate_datum_array_entries()
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()
1267 if (validate_ebitmap(&scope_index->p_cat_scope, &flavors[SYM_CATS])) in validate_scope_index()
[all …]
Dlink.c747 state->cur->map[SYM_CATS][cat->s.value - 1] = base_cat->s.value; in cat_copy_callback()
1060 assert(mod->map[SYM_CATS][src_cat->low - 1]); in mls_level_convert()
1061 dst->cat->low = mod->map[SYM_CATS][src_cat->low - 1]; in mls_level_convert()
1062 assert(mod->map[SYM_CATS][src_cat->high - 1]); in mls_level_convert()
1063 dst->cat->high = mod->map[SYM_CATS][src_cat->high - 1]; in mls_level_convert()
Dmodule_to_cil.c2396 ebitmap_to_cil(pdb, &level->level->cat, SYM_CATS); in sens_to_cil()
2501 ebitmap_to_cil(pdb, map, SYM_CATS); in level_to_cil()
3464 if (sym == SYM_CATS) { in declared_scopes_to_cil()
Dexpand.c1222 if (!is_id_enabled(id, state->base, SYM_CATS)) { in cats_copy_callback()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h400 #define SYM_CATS 7 macro
438 #define p_cat_scope scope[SYM_CATS]
532 #define p_cats symtab[SYM_CATS]
543 #define p_cat_val_to_name sym_val_to_name[SYM_CATS]
/third_party/selinux/checkpolicy/
Dmodule_compiler.c62 [SYM_CATS] = "cat"
1101 retval = require_symbol(SYM_CATS, id, cat, in require_cat()
1108 print_error_msg(retval, SYM_CATS); in require_cat()
Dpolicy_define.c916 ret = declare_symbol(SYM_CATS, id, datum, &value, &value); in define_category()
955 declare_symbol(SYM_CATS, id, aliasdatum, NULL, in define_category()
/third_party/selinux/libsepol/tests/
Dtest-common.c137 CU_ASSERT(p->sym_val_to_name[SYM_CATS][d->s.value - 1] == (char *)key); in cat_test_index()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c803 rc = symtab_insert(pdb, SYM_CATS, key, sepol_cat, SCOPE_DECL, 0, &value); in cil_catorder_to_policydb()
831 rc = symtab_insert(pdb, SYM_CATS, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_catalias_to_policydb()