Home
last modified time | relevance | path

Searched refs:SYM_CLASSES (Results 1 – 12 of 12) sorted by relevance

/third_party/selinux/libsepol/src/
Dpolicydb_validate.c42 if (validate_init(&flavors[SYM_CLASSES], p->p_class_val_to_name, p->p_classes.nprim)) in validate_array_init()
200 if (validate_value(class->s.value, &flavors[SYM_CLASSES])) in validate_class_datum()
319 if (ebitmap_get_bit(&flavors[SYM_CLASSES].gaps, i)) in validate_datum_arrays()
324 if (!ebitmap_get_bit(&flavors[SYM_CLASSES].gaps, i)) in validate_datum_arrays()
388 if (validate_value(key->target_class, &flavors[SYM_CLASSES])) in validate_avtab_key()
440 if (validate_value(class->tclass, &flavors[SYM_CLASSES])) in validate_avrules()
500 if (validate_value(role_trans->tclass, &flavors[SYM_CLASSES])) in validate_role_transes()
537 if (validate_value(ftk->tclass, &flavors[SYM_CLASSES])) in validate_filename_trans()
573 if (validate_ebitmap(&role_trans->classes, &flavors[SYM_CLASSES])) in validate_role_trans_rules()
609 if (validate_ebitmap(&range_trans->tclasses, &flavors[SYM_CLASSES])) in validate_range_trans_rules()
[all …]
Dlink.c319 state->cur->map[SYM_CLASSES][cladatum->s.value - 1] = in class_copy_callback()
1286 module->map[SYM_CLASSES][cur_perm->tclass - 1]; in copy_avrule_list()
1380 assert(module->map[SYM_CLASSES][i]); in copy_role_trans_list()
1383 map[SYM_CLASSES][i] - 1, in copy_role_trans_list()
1481 new_rule->tclass = module->map[SYM_CLASSES][cur->tclass - 1]; in copy_filename_trans_list()
1520 assert(mod->map[SYM_CLASSES][i]); in copy_range_trans_list()
1523 mod->map[SYM_CLASSES][i] - 1, 1)) { in copy_range_trans_list()
1672 if (i == SYM_CLASSES && in copy_scope_index()
1674 module->map[SYM_CLASSES][j]) { in copy_scope_index()
1676 module->map[SYM_CLASSES][j]; in copy_scope_index()
[all …]
Davrule_block.c199 if (!is_id_enabled(class_id, p, SYM_CLASSES)) { in is_perm_enabled()
Dmodule_to_cil.c2091 cil_printf("%s ", pdb->sym_val_to_name[SYM_CLASSES][i]); in class_order_to_cil()
3441 if (sym == SYM_CLASSES) { in declared_scopes_to_cil()
Dexpand.c457 if (!is_id_enabled(id, state->base, SYM_CLASSES)) { in class_copy_callback()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h393 #define SYM_CLASSES 1 macro
431 #define p_classes_scope scope[SYM_CLASSES]
525 #define p_classes symtab[SYM_CLASSES]
536 #define p_class_val_to_name sym_val_to_name[SYM_CLASSES]
/third_party/selinux/checkpolicy/test/
Ddismod.c278 display_id(policy, fp, SYM_CLASSES, cur->tclass - 1, ""); in display_avrule()
478 display_id(p, fp, SYM_CLASSES, i, ""); in display_class_set()
514 display_id(p, fp, SYM_CLASSES, tr->tclass - 1, ":"); in display_filename_trans()
551 if (i == SYM_CLASSES) { in display_scope_index()
Ddispol.c323 display_id(p, fp, SYM_CLASSES, rt->tclass - 1, ":"); in display_role_trans()
350 display_id(p, fp, SYM_CLASSES, ft->tclass - 1, ":"); in filenametr_display()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c56 [SYM_CLASSES] = "class",
809 require_symbol(SYM_CLASSES, class_id, datum, &datum->s.value, in require_class()
812 print_error_msg(ret, SYM_CLASSES); in require_class()
Dpolicy_define.c173 ret = declare_symbol(SYM_CLASSES, id, datum, &value, &value); in define_class()
344 if (!is_id_in_scope(SYM_CLASSES, id)) { in read_classes()
375 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_default_user()
407 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_default_role()
439 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_default_type()
471 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_default_range()
3542 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_constraint()
3681 if (!is_id_in_scope(SYM_CLASSES, id)) { in define_validatetrans()
/third_party/selinux/libsepol/tests/
Dtest-common.c73 CU_ASSERT(p->sym_val_to_name[SYM_CLASSES][d->s.value - 1] == (char *)key); in class_test_index()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c303 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()