Home
last modified time | relevance | path

Searched refs:SYM_TYPES (Results 1 – 13 of 13) sorted by relevance

/external/libsepol/tests/
Dtest-linker-types.c136 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 …]
Dtest-linker-roles.c81 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 …]
Dtest-linker-cond-map.c97 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()
Dtest-common.c94 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()
Dtest-deps.c173 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/checkpolicy/test/
Ddispol.c338 display_id(p, fp, SYM_TYPES, i - 1, ""); in display_permissive()
351 display_id(p, fp, SYM_TYPES, rt->type - 1, ""); in display_role_trans()
364 display_id(p, fp, SYM_TYPES, ft->stype - 1, ""); in display_filename_trans()
365 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); in display_filename_trans()
367 display_id(p, fp, SYM_TYPES, ft->otype - 1, ""); in display_filename_trans()
Ddismod.c159 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/libsepol/include/sepol/policydb/
Dpolicydb.h336 #define SYM_TYPES 3 macro
372 #define p_types_scope scope[SYM_TYPES]
466 #define p_types symtab[SYM_TYPES]
477 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
/external/libsepol/src/
Dlink.c479 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value; in type_copy_callback()
720 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1]; in type_bounds_copy_callback()
876 mod->map[SYM_TYPES][primval - 1]); in alias_copy_callback()
877 assert(mod->map[SYM_TYPES][type->s.value - 1] == in alias_copy_callback()
895 mod->map[SYM_TYPES][type->s.value - 1] = base_type->primary; in alias_copy_callback()
916 assert(mod->map[SYM_TYPES][i]); in type_set_convert()
918 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert()
925 assert(mod->map[SYM_TYPES][i]); in type_set_convert()
927 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert()
1143 assert(mod->map[SYM_TYPES][i]); in type_fix_callback()
[all …]
Dexpand.c91 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()
484 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) in type_bounds_copy_callback()
595 state->base, SYM_TYPES)) { in alias_copy_callback()
Dwrite.c1981 if (i == SYM_TYPES && in policydb_write()
/external/checkpolicy/
Dpolicy_define.c215 if (!is_id_in_scope(SYM_TYPES, type)) { in define_permissive()
1026 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type()
1049 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type()
1087 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typealias()
1119 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute()
1132 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute()
1169 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { in define_typebounds_helper()
1180 if (!is_id_in_scope(SYM_TYPES, type_id)) { in define_typebounds_helper()
1282 if (!is_id_in_scope(SYM_TYPES, id)) { in define_type()
1355 if (!is_id_in_scope(SYM_TYPES, id)) { in set_types()
[all …]
Dmodule_compiler.c336 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value); in declare_type()
651 if (symbol_type == SYM_TYPES) { in require_symbol()
659 [SYM_TYPES]. in require_symbol()
956 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type, in require_type_or_attribute()