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

/external/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/libsepol/include/sepol/policydb/
H A Dpolicydb.h349 #define SYM_ROLES 2 macro
385 #define p_roles_scope scope[SYM_ROLES]
479 #define p_roles symtab[SYM_ROLES]
490 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
/external/libsepol/src/
H A Dlink.c422 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value;
799 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1];
1023 assert(mod->map[SYM_ROLES][i]);
1025 (&tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1119 assert(mod->map[SYM_ROLES][i]);
1121 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1138 assert(mod->map[SYM_ROLES][i]);
1140 (&e_tmp, mod->map[SYM_ROLES][i] - 1, 1)) {
1387 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1];
1633 if (hashtab_map(src_symtab[SYM_ROLES]
[all...]
H A Dpolicydb.c688 rc = symtab_insert(p, SYM_ROLES, key, role,
1073 for (i = SYM_ROLES; i < SYM_NUM; i++) {
1522 if (sym != SYM_ROLES && sym != SYM_USERS) {
1528 if (sym == SYM_ROLES) {
H A Dexpand.c645 if (!is_id_enabled((char *)key, state->base, SYM_ROLES))
822 if (!is_id_enabled(id, state->base, SYM_ROLES)) {
890 if (!is_id_enabled(id, state->base, SYM_ROLES)) {
H A Dwrite.c2022 if ((i == SYM_ROLES) &&
/external/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.c350 display_id(p, fp, SYM_ROLES, rt->role - 1, "");
353 display_id(p, fp, SYM_ROLES, rt->new_role - 1, "");
/external/checkpolicy/
H A Dpolicy_define.c1888 if (!is_id_in_scope(SYM_ROLES, id)) {
1939 if (!is_id_in_scope(SYM_ROLES, id)) {
1989 if (!is_id_in_scope(SYM_ROLES, id)) {
2003 if (!is_id_in_scope(SYM_ROLES, id)) {
2138 if (!is_id_in_scope(SYM_ROLES, role_id)) {
2154 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id,
2270 if (!is_id_in_scope(SYM_ROLES, id)) {
2357 if (!is_id_in_scope(SYM_ROLES, id)) {
3038 if (!is_id_in_scope(SYM_ROLES, id)) {
3314 if (!is_id_in_scope(SYM_ROLES, i
[all...]
H A Dmodule_compiler.c222 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value,
886 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role,

Completed in 78 milliseconds