/external/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/checkpolicy/test/ |
D | dispol.c | 338 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()
|
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/libsepol/include/sepol/policydb/ |
D | policydb.h | 349 #define SYM_TYPES 3 macro 385 #define p_types_scope scope[SYM_TYPES] 479 #define p_types symtab[SYM_TYPES] 490 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
|
/external/libsepol/src/ |
D | link.c | 514 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value; in type_copy_callback() 755 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1]; in type_bounds_copy_callback() 911 mod->map[SYM_TYPES][primval - 1]); in alias_copy_callback() 912 assert(mod->map[SYM_TYPES][type->s.value - 1] == in alias_copy_callback() 930 mod->map[SYM_TYPES][type->s.value - 1] = base_type->primary; in alias_copy_callback() 951 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 953 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 960 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 962 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 1178 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() 521 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) in type_bounds_copy_callback() 632 state->base, SYM_TYPES)) { in alias_copy_callback()
|
D | write.c | 1994 if (i == SYM_TYPES && in policydb_write()
|
/external/checkpolicy/ |
D | policy_define.c | 215 if (!is_id_in_scope(SYM_TYPES, type)) { in define_permissive() 1122 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type() 1145 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type() 1183 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typealias() 1215 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1228 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1265 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { in define_typebounds_helper() 1276 if (!is_id_in_scope(SYM_TYPES, type_id)) { in define_typebounds_helper() 1378 if (!is_id_in_scope(SYM_TYPES, id)) { in define_type() 1451 if (!is_id_in_scope(SYM_TYPES, id)) { in set_types() [all …]
|
D | module_compiler.c | 336 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()
|