/external/selinux/libsepol/tests/ |
D | test-linker-types.c | 136 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests() 137 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 140 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in base_type_tests() 146 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 149 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 154 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests() 155 test_sym_presence(base, "g_b_alias_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 157 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o6_b"))->decl_id; in base_type_tests() 158 test_sym_presence(base, "g_b_alias_2", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() [all …]
|
D | test-linker-roles.c | 81 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests() 90 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); in base_role_tests() 112 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 121 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); in module_role_tests() 134 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests() 135 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests() 146 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 147 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests() 158 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in module_role_tests() [all …]
|
D | test-linker-cond-map.c | 97 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"); in base_cond_tests() 107 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); in base_cond_tests() 125 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"); in module_cond_tests() 135 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); in module_cond_tests() 145 d = test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"); in module_cond_tests()
|
D | test-common.c | 94 CU_ASSERT(p->sym_val_to_name[SYM_TYPES][d->s.value - 1] == (char *)key); in type_test_index() 205 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_role_type_set() 211 printf("\nRole %s had type %s not in types array\n", id, p->sym_val_to_name[SYM_TYPES][i]); in test_role_type_set() 248 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_attr_types() 254 printf("\nattr %s had type %s not in types array\n", id, p->sym_val_to_name[SYM_TYPES][i]); in test_attr_types()
|
D | test-deps.c | 173 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_global() 252 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_opt()
|
/external/selinux/checkpolicy/test/ |
D | dispol.c | 313 display_id(p, fp, SYM_TYPES, i - 1, ""); in display_permissive() 326 display_id(p, fp, SYM_TYPES, rt->type - 1, ""); in display_role_trans() 339 display_id(p, fp, SYM_TYPES, ft->stype - 1, ""); in display_filename_trans() 340 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); in display_filename_trans() 342 display_id(p, fp, SYM_TYPES, ft->otype - 1, ""); in display_filename_trans()
|
D | dismod.c | 159 display_id(policy, fp, SYM_TYPES, i, ""); in display_type_set() 166 display_id(policy, fp, SYM_TYPES, i, "-"); in display_type_set() 284 display_id(policy, fp, SYM_TYPES, avrule->perms->data - 1, ""); in display_avrule() 302 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); in display_type_callback() 321 display_id(&policydb, fp, SYM_TYPES, i, ""); in display_type_callback() 327 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); in display_type_callback() 491 display_id(p, fp, SYM_TYPES, tr->otype - 1, ""); in display_filename_trans()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 376 #define SYM_TYPES 3 macro 413 #define p_types_scope scope[SYM_TYPES] 507 #define p_types symtab[SYM_TYPES] 518 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
|
/external/selinux/libsepol/src/ |
D | link.c | 521 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value; in type_copy_callback() 771 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1]; in type_bounds_copy_callback() 927 mod->map[SYM_TYPES][primval - 1]); in alias_copy_callback() 928 assert(mod->map[SYM_TYPES][type->s.value - 1] == in alias_copy_callback() 946 mod->map[SYM_TYPES][type->s.value - 1] = base_type->primary; in alias_copy_callback() 967 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 969 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 976 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 978 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 1194 assert(mod->map[SYM_TYPES][i]); in type_fix_callback() [all …]
|
D | expand.c | 91 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in type_copy_callback() 159 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in attr_convert_callback() 539 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) in type_bounds_copy_callback() 650 state->base, SYM_TYPES)) { in alias_copy_callback()
|
D | module_to_cil.c | 325 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key); in typealiases_gather_map() 2069 if (is_id_in_scope(pdb, decl_stack, types[i], SYM_TYPES)) { in role_to_cil() 2104 if (is_id_in_scope(pdb, decl_stack, types[i], SYM_TYPES)) { in role_to_cil() 2168 ebitmap_to_cil(pdb, &type->types, SYM_TYPES); in type_to_cil()
|
D | write.c | 2080 if (i == SYM_TYPES && in policydb_write()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 337 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value); in declare_type() 652 if (symbol_type == SYM_TYPES) { in require_symbol() 660 [SYM_TYPES]. in require_symbol() 957 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type, in require_type_or_attribute()
|
D | policy_define.c | 220 if (!is_id_in_scope(SYM_TYPES, type)) { in define_permissive() 1159 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type() 1182 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type() 1220 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typealias() 1252 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1265 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1302 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { in define_typebounds_helper() 1313 if (!is_id_in_scope(SYM_TYPES, type_id)) { in define_typebounds_helper() 1415 if (!is_id_in_scope(SYM_TYPES, id)) { in define_type() 1488 if (!is_id_in_scope(SYM_TYPES, id)) { in set_types() [all …]
|
/external/selinux/policycoreutils/semodule_deps/ |
D | semodule_deps.c | 166 if (!(i == SYM_TYPES || i == SYM_BOOLS)) in generate_requires()
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 468 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb() 523 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_typealias_to_policydb() 577 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value); in cil_typeattribute_to_policydb()
|