Searched refs:SYM_ROLES (Results 1 - 13 of 13) sorted by relevance

/external/selinux/libsepol/tests/
H A Dtest-linker-roles.c82 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1);
92 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1);
113 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1);
123 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1);
136 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2);
148 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3);
160 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2);
172 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2);
184 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2);
197 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DEC
[all...]
H A Dtest-common.c81 CU_ASSERT(p->sym_val_to_name[SYM_ROLES][d->s.value - 1] == (char *)key);
218 printf("\nrole %s has %d types, %d expected\n", p->sym_val_to_name[SYM_ROLES][role->s.value - 1], found, len);
/external/selinux/libsepol/include/sepol/policydb/
H A Dpolicydb.h372 #define SYM_ROLES 2 macro
409 #define p_roles_scope scope[SYM_ROLES]
503 #define p_roles symtab[SYM_ROLES]
514 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
/external/selinux/libsepol/src/
H A Dlink.c422 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value;
800 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1];
1024 assert(mod->map[SYM_ROLES][i]);
1026 (&tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1120 assert(mod->map[SYM_ROLES][i]);
1122 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1139 assert(mod->map[SYM_ROLES][i]);
1141 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1394 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1];
1640 if (hashtab_map(src_symtab[SYM_ROLES]
[all...]
H A Dpolicydb.c704 rc = symtab_insert(p, SYM_ROLES, key, role,
1089 for (i = SYM_ROLES; i < SYM_NUM; i++) {
1538 if (sym != SYM_ROLES && sym != SYM_USERS) {
1544 if (sym == SYM_ROLES) {
H A Dexpand.c569 if (!is_id_enabled((char *)key, state->base, SYM_ROLES))
746 if (!is_id_enabled(id, state->base, SYM_ROLES)) {
814 if (!is_id_enabled(id, state->base, SYM_ROLES)) {
H A Dwrite.c2088 if ((i == SYM_ROLES) &&
H A Dmodule_to_cil.c987 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) {
/external/selinux/checkpolicy/test/
H A Ddismod.c204 display_id(p, fp, SYM_ROLES, i, "");
352 display_id(p, fp, SYM_ROLES, j, "");
469 display_id(p, fp, SYM_ROLES, tr->new_role - 1, "");
506 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, "");
H A Ddispol.c376 display_id(p, fp, SYM_ROLES, rt->role - 1, "");
379 display_id(p, fp, SYM_ROLES, rt->new_role - 1, "");
/external/selinux/checkpolicy/
H A Dpolicy_define.c2552 if (!is_id_in_scope(SYM_ROLES, id)) {
2603 if (!is_id_in_scope(SYM_ROLES, id)) {
2653 if (!is_id_in_scope(SYM_ROLES, id)) {
2667 if (!is_id_in_scope(SYM_ROLES, id)) {
2802 if (!is_id_in_scope(SYM_ROLES, role_id)) {
2818 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id,
2934 if (!is_id_in_scope(SYM_ROLES, id)) {
3021 if (!is_id_in_scope(SYM_ROLES, id)) {
3703 if (!is_id_in_scope(SYM_ROLES, id)) {
3977 if (!is_id_in_scope(SYM_ROLES, i
[all...]
H A Dmodule_compiler.c223 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value,
887 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role,
/external/selinux/libsepol/cil/src/
H A Dcil_binary.c418 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value);

Completed in 238 milliseconds