/external/selinux/libsepol/tests/ |
D | test-expander-attr-map.c | 93 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5")… in test_expander_attr_mapping() 94 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_1… in test_expander_attr_mapping() 95 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_2… in test_expander_attr_mapping() 96 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8")… in test_expander_attr_mapping() 97 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_1… in test_expander_attr_mapping() 98 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_2… in test_expander_attr_mapping() 99 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4")); in test_expander_attr_mapping() 100 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_1_… in test_expander_attr_mapping() 101 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_2_… in test_expander_attr_mapping() 102 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_7")); in test_expander_attr_mapping() [all …]
|
D | test-common.c | 155 type = hashtab_search(p->p_types.table, id); in test_alias_datum() 156 primary = hashtab_search(p->p_types.table, primary_id); in test_alias_datum() 233 attr = hashtab_search(decl->p_types.table, id); in test_attr_types() 235 attr = hashtab_search(p->p_types.table, id); in test_attr_types()
|
D | test-linker-types.c | 107 type = hashtab_search(p->p_types.table, id); in test_type_datum() 116 type = hashtab_search(p->decl_val_to_struct[decls[i] - 1]->p_types.table, id); in test_type_datum()
|
/external/selinux/libsepol/src/ |
D | kernel_to_cil.c | 1188 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_attributes_to_cil() 1193 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_attributes_to_cil() 1318 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_decl_rules_to_cil() 1323 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_decl_rules_to_cil() 1364 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_alias_rules_to_cil() 1369 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_alias_rules_to_cil() 1397 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_cil() 1425 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_bounds_rules_to_cil() 1430 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_bounds_rules_to_cil() 1451 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_cil() [all …]
|
D | link.c | 451 base_type = hashtab_search(state->base->p_types.table, id); in type_copy_callback() 490 new_type->s.value = state->base->p_types.nprim + 1; in type_copy_callback() 492 ret = hashtab_insert(state->base->p_types.table, in type_copy_callback() 498 state->base->p_types.nprim++; in type_copy_callback() 515 (state->dest_decl->p_types.table, new_id, new_type)) { in type_copy_callback() 518 state->dest_decl->p_types.nprim++; in type_copy_callback() 773 dest = hashtab_search(state->base->p_types.table, key); in type_bounds_copy_callback() 880 target_type = hashtab_search(state->base->p_types.table, target_id); in alias_copy_callback() 895 base_type = hashtab_search(state->base->p_types.table, id); in alias_copy_callback() 908 new_type->s.value = state->base->p_types.nprim + 1; in alias_copy_callback() [all …]
|
D | expand.c | 117 new_type->s.value = ++state->out->p_types.nprim; in type_copy_callback() 127 ret = hashtab_insert(state->out->p_types.table, in type_copy_callback() 169 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback() 546 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback() 683 ret = hashtab_insert(state->out->p_types.table, in alias_copy_callback() 2554 if (i >= p->p_types.nprim) in type_set_expand() 2596 for (i = 0; i < p->p_types.nprim; i++) { in type_set_expand() 2616 for (i = 0; i < p->p_types.nprim; i++) { in type_set_expand() 3017 (uint32_t *) calloc(state.base->p_types.nprim, in expand_module() 3044 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) { in expand_module() [all …]
|
D | kernel_to_conf.c | 1162 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_attributes_to_conf() 1167 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_attributes_to_conf() 1292 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_decl_rules_to_conf() 1297 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_decl_rules_to_conf() 1338 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_alias_rules_to_conf() 1343 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_alias_rules_to_conf() 1363 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_conf() 1391 rc = strs_init(&strs, pdb->p_types.nprim); in write_type_bounds_rules_to_conf() 1396 for (i=0; i < pdb->p_types.nprim; i++) { in write_type_bounds_rules_to_conf() 1417 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_conf() [all …]
|
D | context.c | 51 if (!c->type || c->type > p->p_types.nprim) in context_is_valid() 187 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()
|
D | policydb.c | 1023 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index() 1195 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others() 1225 calloc(p->p_types.nprim, sizeof(type_datum_t *)); in policydb_index_others() 1539 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy() 1546 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy() 4225 p->type_attr_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read() 4226 p->attr_type_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read() 4229 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read() 4233 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read() 4243 if (j >= p->p_types.nprim) in policydb_read()
|
D | hierarchy.c | 500 rc = hashtab_map(p->p_types.table, bounds_check_type_callback, &args); in bounds_check_types() 660 rc = hashtab_map(p->p_types.table, hierarchy_add_type_callback, &args); in add_hierarchy_callback_template()
|
D | module_to_cil.c | 384 rc = hashtab_map(pdb->p_types.table, typealiases_gather_map, pdb); in typealias_list_create() 3415 alias_datum = hashtab_search(pdb->p_types.table, alias_name); in typealiases_to_cil()
|
D | services.c | 1668 hashtab_search(args->newp->p_types.table, in convert_context()
|
D | write.c | 2292 for (i = 0; i < p->p_types.nprim; i++) { in policydb_write()
|
/external/selinux/checkpolicy/ |
D | checkpolicy.c | 238 type_rules = malloc(sizeof(struct avtab_node) * policydb.p_types.nprim); in identify_equiv_types() 244 sizeof(struct avtab_node) * policydb.p_types.nprim); in identify_equiv_types() 251 for (i = 0; i < policydb.p_types.nprim - 1; i++) { in identify_equiv_types() 254 for (j = i + 1; j < policydb.p_types.nprim; j++) { in identify_equiv_types()
|
D | policy_define.c | 230 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 1174 attr = hashtab_search(policydbp->p_types.table, id); in expand_attrib() 1209 attr = hashtab_search(policydbp->p_types.table, in expand_attrib() 1314 t = hashtab_search(policydbp->p_types.table, id); in define_typealias() 1347 t = hashtab_search(policydbp->p_types.table, id); in define_typeattribute() 1361 attr = hashtab_search(policydbp->p_types.table, id); in define_typeattribute() 1398 bounds = hashtab_search(policydbp->p_types.table, bounds_id); in define_typebounds_helper() 1409 type = hashtab_search(policydbp->p_types.table, type_id); in define_typebounds_helper() 1511 attr = hashtab_search(policydbp->p_types.table, id); in define_type() 1586 t = hashtab_search(policydbp->p_types.table, id); in set_types() [all …]
|
D | module_compiler.c | 627 types_tab = policydbp->p_types.table; in get_local_type() 629 types_tab = stack_top->decl->p_types.table; in get_local_type()
|
/external/selinux/python/audit2allow/ |
D | sepolgen-ifgen-attr-helper.c | 223 if (hashtab_map(p->p_types.table, attribute_callback, &cb_data)) { in main()
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 108 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum() 601 pdb->type_attr_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init() 602 pdb->attr_type_map = cil_malloc(pdb->p_types.nprim * sizeof(ebitmap_t)); in __cil_typeattr_bitmap_init() 605 for (i = 0; i < pdb->p_types.nprim; i++) { in __cil_typeattr_bitmap_init() 3996 if (type->s.value < 1 || type->s.value > pdb->p_types.nprim) { in __cil_type_val_array_insert() 4083 policydb->p_type_val_to_name = cil_malloc(sizeof(char *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create() 4084 policydb->type_val_to_struct = cil_malloc(sizeof(type_datum_t *) * policydb->p_types.nprim); in __cil_policydb_val_arrays_create() 4085 rc = hashtab_map(policydb->p_types.table, &__cil_type_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 525 #define p_types symtab[SYM_TYPES] macro
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 361 if (hashtab_map(p->p_types.table, display_type_callback, fp)) in display_types()
|