/external/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() 234 attr = hashtab_search(decl->p_types.table, id); in test_attr_types() 236 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/sepolicy/tools/sepolicy-analyze/ |
D | typecmp.c | 168 type_rules = malloc(sizeof(struct avtab_node) * policydb->p_types.nprim); in analyze_types() 173 memset(type_rules, 0, sizeof(struct avtab_node) * policydb->p_types.nprim); in analyze_types() 204 for (i = 0; i < policydb->p_types.nprim - 1; i++) { in analyze_types() 213 for (j = i + 1; j < policydb->p_types.nprim; j++) { in analyze_types()
|
D | neverallow.c | 113 type = hashtab_search(policydb->p_types.table, id); in read_typeset() 144 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset() 163 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset()
|
/external/libsepol/src/ |
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() 772 dest = hashtab_search(state->base->p_types.table, key); in type_bounds_copy_callback() 879 target_type = hashtab_search(state->base->p_types.table, target_id); in alias_copy_callback() 894 base_type = hashtab_search(state->base->p_types.table, id); in alias_copy_callback() 907 new_type->s.value = state->base->p_types.nprim + 1; in alias_copy_callback() [all …]
|
D | context.c | 50 if (!c->type || c->type > p->p_types.nprim) in context_is_valid() 186 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()
|
D | expand.c | 191 new_type->s.value = ++state->out->p_types.nprim; in type_copy_callback() 201 ret = hashtab_insert(state->out->p_types.table, in type_copy_callback() 243 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback() 620 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback() 757 ret = hashtab_insert(state->out->p_types.table, in alias_copy_callback() 2584 for (i = 0; i < p->p_types.nprim; i++) { in type_set_expand() 2604 for (i = 0; i < p->p_types.nprim; i++) { in type_set_expand() 2992 (uint32_t *) calloc(state.base->p_types.nprim, in expand_module() 3019 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) { in expand_module() 3025 (state.base->p_types.table, attr_convert_callback, &state)) { in expand_module() [all …]
|
D | policydb.c | 882 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index() 1039 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others() 1069 calloc(p->p_types.nprim, sizeof(type_datum_t *)); in policydb_index_others() 1378 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy() 1385 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy() 3875 p->type_attr_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read() 3876 p->attr_type_map = malloc(p->p_types.nprim * sizeof(ebitmap_t)); in policydb_read() 3879 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read() 3883 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
|
D | hierarchy.c | 468 if (hashtab_map(p->p_types.table, check_type_hierarchy_callback, &args)) in hierarchy_check_constraints()
|
D | services.c | 1528 hashtab_search(args->newp->p_types.table, in convert_context()
|
D | write.c | 2089 for (i = 0; i < p->p_types.nprim; i++) { in policydb_write()
|
/external/sepolicy/tools/ |
D | sepolicy-check.c | 131 src = hashtab_search(policy->p_types.table, s); in check_rule() 138 tgt = hashtab_search(policy->p_types.table, t); in check_rule()
|
D | check_seapp.c | 225 dat = hashtab_search(d->p_types.table, type); in check_type()
|
/external/checkpolicy/ |
D | checkpolicy.c | 234 type_rules = malloc(sizeof(struct avtab_node) * policydb.p_types.nprim); in identify_equiv_types() 240 sizeof(struct avtab_node) * policydb.p_types.nprim); in identify_equiv_types() 247 for (i = 0; i < policydb.p_types.nprim - 1; i++) { in identify_equiv_types() 250 for (j = i + 1; j < policydb.p_types.nprim; j++) { in identify_equiv_types()
|
D | policy_define.c | 223 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 1222 t = hashtab_search(policydbp->p_types.table, id); in define_typealias() 1254 t = hashtab_search(policydbp->p_types.table, id); in define_typeattribute() 1267 attr = hashtab_search(policydbp->p_types.table, id); in define_typeattribute() 1304 bounds = hashtab_search(policydbp->p_types.table, bounds_id); in define_typebounds_helper() 1315 type = hashtab_search(policydbp->p_types.table, type_id); in define_typebounds_helper() 1417 attr = hashtab_search(policydbp->p_types.table, id); in define_type() 1490 t = hashtab_search(policydbp->p_types.table, id); in set_types() 1562 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in define_compute_type_helper() 2596 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans() [all …]
|
D | module_compiler.c | 521 types_tab = policydbp->p_types.table; in get_local_type() 523 types_tab = stack_top->decl->p_types.table; in get_local_type()
|
/external/libsepol/include/sepol/policydb/ |
D | policydb.h | 483 #define p_types symtab[SYM_TYPES] macro
|
/external/checkpolicy/test/ |
D | dismod.c | 336 if (hashtab_map(p->p_types.table, display_type_callback, fp)) in display_types()
|