Home
last modified time | relevance | path

Searched refs:SYM_ROLES (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-linker-roles.c82 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
92 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
113 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
123 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
135 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
147 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
159 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
171 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
183 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
196 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
Dtest-common.c81 CU_ASSERT(p->sym_val_to_name[SYM_ROLES][d->s.value - 1] == (char *)key); in role_test_index()
217 …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()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h392 #define SYM_ROLES 2 macro
430 #define p_roles_scope scope[SYM_ROLES]
524 #define p_roles symtab[SYM_ROLES]
535 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
/external/selinux/libsepol/src/
Dlink.c422 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()
1024 assert(mod->map[SYM_ROLES][i]); in role_set_or_convert()
1026 (&tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_set_or_convert()
1120 assert(mod->map[SYM_ROLES][i]); in role_fix_callback()
1122 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback()
1139 assert(mod->map[SYM_ROLES][i]); in role_fix_callback()
1141 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback()
1403 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1]; in copy_role_trans_list()
1649 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers()
[all …]
Davrule_block.c173 if (symbol_table == SYM_ROLES || symbol_table == SYM_USERS) { in is_id_enabled()
Dpolicydb.c743 rc = symtab_insert(p, SYM_ROLES, key, role, in roles_init()
1232 for (i = SYM_ROLES; i < SYM_NUM; i++) { in policydb_index_others()
1678 if (sym != SYM_ROLES && sym != SYM_USERS) { in symtab_insert()
1684 if (sym == SYM_ROLES) { in symtab_insert()
Dexpand.c571 if (!is_id_enabled((char *)key, state->base, SYM_ROLES)) in role_bounds_copy_callback()
748 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_fix_callback()
816 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_copy_callback()
Dwrite.c2225 if ((i == SYM_ROLES) && in policydb_write()
Dmodule_to_cil.c1111 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) { in roletype_role_in_ancestor_to_cil()
/external/selinux/checkpolicy/
Dmodule_compiler.c57 [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()
Dpolicy_define.c2720 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_types()
2772 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_attr()
2822 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute()
2837 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute()
2972 if (!is_id_in_scope(SYM_ROLES, role_id)) { in define_role_dom()
2988 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id, in define_role_dom()
3104 if (!is_id_in_scope(SYM_ROLES, id)) { in set_roles()
3191 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_trans()
3895 if (!is_id_in_scope(SYM_ROLES, id)) { in define_cexpr()
4169 if (!is_id_in_scope(SYM_ROLES, id)) { in set_user_roles()
[all …]
/external/selinux/checkpolicy/test/
Ddismod.c204 display_id(p, fp, SYM_ROLES, i, ""); in display_mod_role_set()
377 display_id(p, fp, SYM_ROLES, j, ""); in display_users()
494 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans()
531 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, ""); in role_display_callback()
Ddispol.c325 display_id(p, fp, SYM_ROLES, rt->role - 1, ""); in display_role_trans()
328 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
/external/selinux/libsepol/cil/src/
Dcil_binary.c389 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()