Home
last modified time | relevance | path

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

/external/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()
136 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
148 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
160 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
172 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
184 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
197 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()
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()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h348 #define SYM_ROLES 2 macro
384 #define p_roles_scope scope[SYM_ROLES]
478 #define p_roles symtab[SYM_ROLES]
489 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
/external/libsepol/src/
Dlink.c415 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value; in role_copy_callback()
784 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1]; in role_bounds_copy_callback()
1008 assert(mod->map[SYM_ROLES][i]); in role_set_or_convert()
1010 (&tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_set_or_convert()
1104 assert(mod->map[SYM_ROLES][i]); in role_fix_callback()
1106 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback()
1123 assert(mod->map[SYM_ROLES][i]); in role_fix_callback()
1125 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) { in role_fix_callback()
1371 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1]; in copy_role_trans_list()
1617 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers()
[all …]
Dpolicydb.c646 rc = symtab_insert(p, SYM_ROLES, key, role, in roles_init()
1031 for (i = SYM_ROLES; i < SYM_NUM; i++) { in policydb_index_others()
1480 if (sym != SYM_ROLES && sym != SYM_USERS) { in symtab_insert()
1486 if (sym == SYM_ROLES) { in symtab_insert()
Dexpand.c551 if (!is_id_enabled((char *)key, state->base, SYM_ROLES)) in role_bounds_copy_callback()
728 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_fix_callback()
796 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_copy_callback()
Dwrite.c2006 if ((i == SYM_ROLES) && in policydb_write()
/external/checkpolicy/test/
Ddismod.c204 display_id(p, fp, SYM_ROLES, i, ""); in display_mod_role_set()
352 display_id(p, fp, SYM_ROLES, j, ""); in display_users()
469 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans()
506 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, ""); in role_display_callback()
Ddispol.c350 display_id(p, fp, SYM_ROLES, rt->role - 1, ""); in display_role_trans()
353 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
/external/checkpolicy/
Dpolicy_define.c1888 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_types()
1939 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_attr()
1989 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute()
2003 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute()
2138 if (!is_id_in_scope(SYM_ROLES, role_id)) { in define_role_dom()
2154 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id, in define_role_dom()
2270 if (!is_id_in_scope(SYM_ROLES, id)) { in set_roles()
2357 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_trans()
3038 if (!is_id_in_scope(SYM_ROLES, id)) { in define_cexpr()
3314 if (!is_id_in_scope(SYM_ROLES, id)) { in set_user_roles()
[all …]
Dmodule_compiler.c222 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value, in declare_role()
886 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, in require_role_or_attribute()