/third_party/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 | 79 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests() 88 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); in base_role_tests() 110 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 119 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); in module_role_tests() 132 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests() 142 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests() 143 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 144 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests() 155 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in module_role_tests() 156 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->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 | 96 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() 212 id, p->sym_val_to_name[SYM_TYPES][i]); in test_role_type_set() 250 if (strcmp(p->sym_val_to_name[SYM_TYPES][i], types[j]) == 0) { in test_attr_types() 257 id, p->sym_val_to_name[SYM_TYPES][i]); in test_attr_types()
|
D | test-deps.c | 176 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_global() 256 decl = test_find_decl_by_sym(base, SYM_TYPES, decl_type); in do_deps_modreq_opt()
|
/third_party/selinux/libsepol/src/ |
D | policydb_validate.c | 47 if (validate_init(&flavors[SYM_TYPES], p->p_type_val_to_name, p->p_types.nprim)) in validate_array_init() 55 flavors[SYM_TYPES].nprim = p->p_types.nprim; in validate_array_init() 56 ebitmap_init(&flavors[SYM_TYPES].gaps); in validate_array_init() 183 if (validate_ebitmap(&cexp->names, &flavors[SYM_TYPES])) in validate_constraint_nodes() 185 if (validate_type_set(cexp->type_names, &flavors[SYM_TYPES])) in validate_constraint_nodes() 220 if (validate_type_set(&role->types, &flavors[SYM_TYPES])) in validate_role_datum() 236 if (validate_value(type->s.value, &flavors[SYM_TYPES])) in validate_type_datum() 238 if (validate_ebitmap(&type->types, &flavors[SYM_TYPES])) in validate_type_datum() 240 if (type->bounds && validate_value(type->bounds, &flavors[SYM_TYPES])) in validate_type_datum() 348 if (ebitmap_get_bit(&flavors[SYM_TYPES].gaps, i)) in validate_datum_arrays() [all …]
|
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() 966 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 968 (&dst->types, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 973 assert(mod->map[SYM_TYPES][i]); in type_set_convert() 975 (&dst->negset, mod->map[SYM_TYPES][i] - 1, 1)) { in type_set_convert() 1183 assert(mod->map[SYM_TYPES][i]); in type_fix_callback() [all …]
|
D | expand.c | 123 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in type_copy_callback() 191 if (!is_id_enabled(id, state->base, SYM_TYPES)) { in attr_convert_callback() 574 if (!is_id_enabled((char *)key, state->base, SYM_TYPES)) in type_bounds_copy_callback() 685 state->base, SYM_TYPES)) { in alias_copy_callback()
|
D | module_to_cil.c | 339 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key); in typealiases_gather_map() 2174 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil() 2206 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil() 2286 ebitmap_to_cil(pdb, &type->types, SYM_TYPES); in type_to_cil()
|
D | write.c | 2309 if (i == SYM_TYPES && in policydb_write()
|
/third_party/selinux/checkpolicy/test/ |
D | dispol.c | 310 display_id(p, fp, SYM_TYPES, i - 1, ""); in display_permissive() 322 display_id(p, fp, SYM_TYPES, rt->type - 1, ""); in display_role_trans() 348 display_id(p, fp, SYM_TYPES, bit, ""); 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()
|
D | dismod.c | 158 display_id(policy, fp, SYM_TYPES, i, ""); in display_type_set() 165 display_id(policy, fp, SYM_TYPES, i, "-"); in display_type_set() 290 display_id(policy, fp, SYM_TYPES, avrule->perms->data - 1, ""); in display_avrule() 326 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); in display_type_callback() 345 display_id(&policydb, fp, SYM_TYPES, i, ""); in display_type_callback() 351 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, ""); in display_type_callback() 515 display_id(p, fp, SYM_TYPES, tr->otype - 1, ""); in display_filename_trans()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 395 #define SYM_TYPES 3 macro 433 #define p_types_scope scope[SYM_TYPES] 527 #define p_types symtab[SYM_TYPES] 538 #define p_type_val_to_name sym_val_to_name[SYM_TYPES]
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.c | 58 [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()
|
D | policy_define.c | 223 if (!is_id_in_scope(SYM_TYPES, type)) { in define_permissive() 1168 if (!is_id_in_scope(SYM_TYPES, id)) { in expand_attrib() 1206 policydbp->sym_val_to_name[SYM_TYPES][i]); in expand_attrib() 1244 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type() 1267 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type() 1305 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typealias() 1338 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1352 if (!is_id_in_scope(SYM_TYPES, id)) { in define_typeattribute() 1389 if (!is_id_in_scope(SYM_TYPES, bounds_id)) { in define_typebounds_helper() 1400 if (!is_id_in_scope(SYM_TYPES, type_id)) { in define_typebounds_helper() [all …]
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 464 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb() 519 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_typealias_to_policydb() 573 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value); in cil_typeattribute_to_policydb()
|