/third_party/selinux/libsepol/tests/ |
D | test-linker-roles.c | 81 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 91 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 112 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 122 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 134 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 146 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests() 158 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 170 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 182 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 195 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
|
D | test-common.c | 84 CU_ASSERT(p->sym_val_to_name[SYM_ROLES][d->s.value - 1] == (char *)key); in role_test_index() 219 …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()
|
/third_party/selinux/libsepol/src/ |
D | policydb_validate.c | 55 if (validate_init(&flavors[SYM_ROLES], p->p_role_val_to_name, p->p_roles.nprim)) in validate_array_init() 270 if (validate_ebitmap(&cexp->names, &flavors[SYM_ROLES])) in validate_constraint_nodes() 438 if (validate_value(role->s.value, &flavors[SYM_ROLES])) in validate_role_datum() 440 if (validate_ebitmap(&role->dominates, &flavors[SYM_ROLES])) in validate_role_datum() 444 if (role->bounds && validate_value(role->bounds, &flavors[SYM_ROLES])) in validate_role_datum() 446 if (validate_ebitmap(&role->roles, &flavors[SYM_ROLES])) in validate_role_datum() 622 if (validate_role_set(&user->roles, &flavors[SYM_ROLES])) in validate_user_datum() 694 if (bool_xnor(p->role_val_to_struct[i], ebitmap_get_bit(&flavors[SYM_ROLES].gaps, i))) in validate_datum_array_gaps() 1045 if (validate_value(role_trans->role, &flavors[SYM_ROLES])) in validate_role_transes() 1051 if (validate_value(role_trans->new_role, &flavors[SYM_ROLES])) in validate_role_transes() [all …]
|
D | link.c | 424 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value; in role_copy_callback() 802 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1]; in role_bounds_copy_callback() 1019 if (ebitmap_convert(&roles->roles, &tmp, mod->map[SYM_ROLES])) in role_set_or_convert() 1106 if (ebitmap_convert(&role->dominates, &e_tmp, mod->map[SYM_ROLES])) in role_fix_callback() 1118 if (ebitmap_convert(&role->roles, &e_tmp, mod->map[SYM_ROLES])) in role_fix_callback() 1356 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1]; in copy_role_trans_list() 1593 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers() 1838 if (symbol_num != SYM_ROLES && symbol_num != SYM_USERS) { in scope_copy_callback() 2450 if (hashtab_map(decl->symtab[SYM_ROLES].table, in populate_roleattributes()
|
D | avrule_block.c | 174 if (symbol_table == SYM_ROLES || symbol_table == SYM_USERS) { in is_id_enabled()
|
D | expand.c | 604 if (!is_id_enabled((char *)key, state->base, SYM_ROLES)) in role_bounds_copy_callback() 781 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_fix_callback() 847 if (!is_id_enabled(id, state->base, SYM_ROLES)) { in role_copy_callback()
|
D | policydb.c | 784 rc = symtab_insert(p, SYM_ROLES, key, role, in roles_init() 1270 for (i = SYM_ROLES; i < SYM_NUM; i++) { in policydb_index_others() 1708 if (sym != SYM_ROLES && sym != SYM_USERS) { in symtab_insert() 1714 if (sym == SYM_ROLES) { in symtab_insert()
|
D | write.c | 2343 if ((i == SYM_ROLES) && in policydb_write()
|
D | module_to_cil.c | 1103 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) { in roletype_role_in_ancestor_to_cil()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 395 #define SYM_ROLES 2 macro 433 #define p_roles_scope scope[SYM_ROLES] 527 #define p_roles symtab[SYM_ROLES] 538 #define p_role_val_to_name sym_val_to_name[SYM_ROLES]
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.c | 57 [SYM_ROLES] = "role", 280 ret = declare_symbol(SYM_ROLES, id, datum, &value, &value); in create_role() 282 ret = require_symbol(SYM_ROLES, id, datum, &value, &value); in create_role() 295 *role = hashtab_search(policydbp->symtab[SYM_ROLES].table, id); in create_role() 307 print_error_msg(ret, SYM_ROLES); in create_role()
|
D | policy_define.c | 2710 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_types() 2762 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_attr() 2812 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2827 if (!is_id_in_scope(SYM_ROLES, id)) { in define_roleattribute() 2958 if (!is_id_in_scope(SYM_ROLES, role_id)) { in define_role_dom() 2974 declare_symbol(SYM_ROLES, (hashtab_key_t) role_id, in define_role_dom() 3087 if (!is_id_in_scope(SYM_ROLES, id)) { in set_roles() 3174 if (!is_id_in_scope(SYM_ROLES, id)) { in define_role_trans() 3882 if (!is_id_in_scope(SYM_ROLES, id)) { in define_cexpr() 4154 if (!is_id_in_scope(SYM_ROLES, id)) { in set_user_roles() [all …]
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 203 display_id(p, fp, SYM_ROLES, i, ""); in display_mod_role_set() 376 display_id(p, fp, SYM_ROLES, j, ""); in display_users() 493 display_id(p, fp, SYM_ROLES, tr->new_role - 1, ""); in display_role_trans() 530 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, ""); in role_display_callback()
|
D | dispol.c | 321 display_id(p, fp, SYM_ROLES, rt->role - 1, ""); in display_role_trans() 324 display_id(p, fp, SYM_ROLES, rt->new_role - 1, ""); in display_role_trans()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 380 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
|