/third_party/selinux/libsepol/tests/ |
D | test-linker-roles.c | 80 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 90 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 111 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 121 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 133 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 145 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests() 157 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 169 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 181 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 194 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
|
D | test-common.c | 83 CU_ASSERT(p->sym_val_to_name[SYM_ROLES][d->s.value - 1] == (char *)key); in role_test_index() 218 …printf("\nrole %s has %d types, %d expected\n", p->sym_val_to_name[SYM_ROLES][role->s.value - 1], … in test_role_type_set()
|
/third_party/selinux/libsepol/src/ |
D | policydb_validate.c | 44 if (validate_init(&flavors[SYM_ROLES], p->p_role_val_to_name, p->p_roles.nprim)) in validate_array_init() 180 if (validate_ebitmap(&cexp->names, &flavors[SYM_ROLES])) in validate_constraint_nodes() 216 if (validate_value(role->s.value, &flavors[SYM_ROLES])) in validate_role_datum() 218 if (validate_ebitmap(&role->dominates, &flavors[SYM_ROLES])) in validate_role_datum() 222 if (role->bounds && validate_value(role->bounds, &flavors[SYM_ROLES])) in validate_role_datum() 224 if (validate_ebitmap(&role->roles, &flavors[SYM_ROLES])) in validate_role_datum() 297 if (validate_role_set(&user->roles, &flavors[SYM_ROLES])) in validate_user_datum() 331 if (ebitmap_get_bit(&flavors[SYM_ROLES].gaps, i)) in validate_datum_arrays() 336 if (!ebitmap_get_bit(&flavors[SYM_ROLES].gaps, i)) in validate_datum_arrays() 496 if (validate_value(role_trans->role, &flavors[SYM_ROLES])) in validate_role_transes() [all …]
|
D | link.c | 422 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value; in role_copy_callback() 800 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1]; in role_bounds_copy_callback() 1019 assert(mod->map[SYM_ROLES][i]); in role_set_or_convert() 1021 (&tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_set_or_convert() 1113 assert(mod->map[SYM_ROLES][i]); in role_fix_callback() 1115 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback() 1130 assert(mod->map[SYM_ROLES][i]); in role_fix_callback() 1132 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback() 1389 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1]; in copy_role_trans_list() 1633 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers() [all …]
|
D | avrule_block.c | 174 if (symbol_table == SYM_ROLES || symbol_table == SYM_USERS) { in is_id_enabled()
|
D | policydb.c | 772 rc = symtab_insert(p, SYM_ROLES, key, role, in roles_init() 1257 for (i = SYM_ROLES; i < SYM_NUM; i++) { in policydb_index_others() 1695 if (sym != SYM_ROLES && sym != SYM_USERS) { in symtab_insert() 1701 if (sym == SYM_ROLES) { in symtab_insert()
|
D | expand.c | 604 if (!is_id_enabled((char *)key, state->base, SYM_ROLES)) in role_bounds_copy_callback() 781 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_fix_callback() 847 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_copy_callback()
|
D | write.c | 2321 if ((i == SYM_ROLES) && in policydb_write()
|
D | module_to_cil.c | 1101 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) { in roletype_role_in_ancestor_to_cil()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 394 #define SYM_ROLES 2 macro 432 #define p_roles_scope scope[SYM_ROLES] 526 #define p_roles symtab[SYM_ROLES] 537 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.c | 57 [SYM_ROLES] = "role", 279 ret = declare_symbol(SYM_ROLES, id, datum, &value, &value); in create_role() 281 ret = require_symbol(SYM_ROLES, id, datum, &value, &value); in create_role() 294 *role = hashtab_search(policydbp->symtab[SYM_ROLES].table, id); in create_role() 306 print_error_msg(ret, SYM_ROLES); in create_role()
|
D | policy_define.c | 2701 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_types() 2753 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_attr() 2803 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2818 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2949 if (!is_id_in_scope(SYM_ROLES, role_id)) { in define_role_dom() 2965 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id, in define_role_dom() 3078 if (!is_id_in_scope(SYM_ROLES, id)) { in set_roles() 3165 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_trans() 3826 if (!is_id_in_scope(SYM_ROLES, id)) { in define_cexpr() 4098 if (!is_id_in_scope(SYM_ROLES, id)) { in set_user_roles() [all …]
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 203 display_id(p, fp, SYM_ROLES, i, ""); in display_mod_role_set() 376 display_id(p, fp, SYM_ROLES, j, ""); in display_users() 493 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans() 530 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, ""); in role_display_callback()
|
D | dispol.c | 321 display_id(p, fp, SYM_ROLES, rt->role - 1, ""); in display_role_trans() 324 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 380 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
|