Home
last modified time | relevance | path

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

/external/selinux/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()
144 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
145 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
146 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests()
157 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in module_role_tests()
158 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->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()
204 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_role_type_set()
210 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()
247 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_attr_types()
253 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.c174 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_global()
254 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_opt()
/external/selinux/checkpolicy/test/
Ddispol.c313 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()
348 display_id(p, fp, SYM_TYPES, ft->stype - 1, ""); in filenametr_display()
349 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); in filenametr_display()
351 display_id(p, fp, SYM_TYPES, ftdatum->otype - 1, ""); in filenametr_display()
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/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h381 #define SYM_TYPES 3 macro
418 #define p_types_scope scope[SYM_TYPES]
512 #define p_types symtab[SYM_TYPES]
523 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
/external/selinux/libsepol/src/
Dlink.c521 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 …]
Dexpand.c92 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in type_copy_callback()
160 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in attr_convert_callback()
540 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) in type_bounds_copy_callback()
651 state->base, SYM_TYPES)) { in alias_copy_callback()
Dmodule_to_cil.c324 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key); in typealiases_gather_map()
2146 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2181 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2261 ebitmap_to_cil(pdb, &type->types, SYM_TYPES); in type_to_cil()
Dwrite.c2149 if (i == SYM_TYPES && in policydb_write()
/external/selinux/checkpolicy/
Dmodule_compiler.c58 [SYM_TYPES] = "type",
419 ret = declare_symbol(SYM_TYPES, id, datum, &value, &value); in create_type()
421 ret = require_symbol(SYM_TYPES, id, datum, &value, &value); in create_type()
430 *type = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in create_type()
439 print_error_msg(ret, SYM_TYPES); in create_type()
Dpolicy_define.c223 if (!is_id_in_scope(SYM_TYPES, type)) { in define_permissive()
1168 if (!is_id_in_scope(SYM_TYPES, id)) { in expand_attrib()
1213 policydbp->sym_val_to_name[SYM_TYPES][i]); in expand_attrib()
1245 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type()
1268 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type()
1306 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typealias()
1339 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute()
1353 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute()
1390 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { in define_typebounds_helper()
1401 if (!is_id_in_scope(SYM_TYPES, type_id)) { in define_typebounds_helper()
[all …]
/external/selinux/semodule-utils/semodule_deps/
Dsemodule_deps.c162 if (!(i == SYM_TYPES || i == SYM_BOOLS)) in generate_requires()
/external/selinux/libsepol/cil/src/
Dcil_binary.c471 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb()
526 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_typealias_to_policydb()
580 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value); in cil_typeattribute_to_policydb()