/external/selinux/libsepol/tests/ |
D | test-linker-roles.c | 82 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()
|
D | test-common.c | 81 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/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 372 #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/ |
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() 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() 1394 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1]; in copy_role_trans_list() 1640 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers() [all …]
|
D | policydb.c | 704 rc = symtab_insert(p, SYM_ROLES, key, role, in roles_init() 1089 for (i = SYM_ROLES; i < SYM_NUM; i++) { in policydb_index_others() 1538 if (sym != SYM_ROLES && sym != SYM_USERS) { in symtab_insert() 1544 if (sym == SYM_ROLES) { in symtab_insert()
|
D | expand.c | 569 if (!is_id_enabled((char *)key, state->base, SYM_ROLES)) in role_bounds_copy_callback() 746 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_fix_callback() 814 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_copy_callback()
|
D | write.c | 2088 if ((i == SYM_ROLES) && in policydb_write()
|
D | module_to_cil.c | 987 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/test/ |
D | dismod.c | 204 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()
|
D | dispol.c | 376 display_id(p, fp, SYM_ROLES, rt->role - 1, ""); in display_role_trans() 379 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 2552 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_types() 2603 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_attr() 2653 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2667 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2802 if (!is_id_in_scope(SYM_ROLES, role_id)) { in define_role_dom() 2818 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id, in define_role_dom() 2934 if (!is_id_in_scope(SYM_ROLES, id)) { in set_roles() 3021 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_trans() 3703 if (!is_id_in_scope(SYM_ROLES, id)) { in define_cexpr() 3977 if (!is_id_in_scope(SYM_ROLES, id)) { in set_user_roles() [all …]
|
D | module_compiler.c | 223 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value, in declare_role() 887 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, in require_role_or_attribute()
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 418 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
|