Home
last modified time | relevance | path

Searched refs:hashtab_search (Results 1 – 25 of 28) sorted by relevance

12

/external/libsepol/tests/
Dtest-expander-attr-map.c93 …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 …]
Dtest-common.c35 if (!hashtab_search(p->symtab[sym_type].table, id)) { in test_sym_presence()
40 scope = hashtab_search(p->scope[sym_type].table, id); in test_sym_presence()
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()
192 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set()
194 role = hashtab_search(p->p_roles.table, id); in test_role_type_set()
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()
Dhelpers.c68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); in test_find_decl_by_sym()
Dtest-expander-users.c40 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
Dtest-linker-types.c107 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()
Dtest-linker-cond-map.c82 b = hashtab_search(p->p_bools.table, bool); in test_bool_state()
/external/libsepol/src/
Davrule_block.c156 (scope_datum_t *) hashtab_search(p->scope[symbol_table].table, id); in is_id_enabled()
185 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
189 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled()
194 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
Dbooleans.c31 hashtab_search(policydb->p_bools.table, name); in bool_update()
135 *response = (hashtab_search(policydb->p_bools.table, name) != NULL); in sepol_bool_exists()
156 booldatum = hashtab_search(policydb->p_bools.table, name); in sepol_bool_query()
Dlink.c137 dest_perm = hashtab_search(dest_class->permissions.table, perm_id); in permission_copy_callback()
140 hashtab_search(dest_class->comdatum->permissions.table, in permission_copy_callback()
255 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback()
263 hashtab_search(state->cur->policy->p_classes_scope.table, in class_copy_callback()
356 base_role = hashtab_search(state->base->p_roles.table, id); in role_copy_callback()
451 base_type = hashtab_search(state->base->p_types.table, id); in type_copy_callback()
541 base_user = hashtab_search(state->base->p_users.table, id); in user_copy_callback()
609 base_bool = hashtab_search(state->base->p_bools.table, id); in bool_copy_callback()
648 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id); in bool_copy_callback()
676 base_level = hashtab_search(state->base->p_levels.table, id); in sens_copy_callback()
[all …]
Dusers.c137 usrdatum = hashtab_search(policydb->p_users.table, in sepol_user_modify()
161 roldatum = hashtab_search(policydb->p_roles.table, in sepol_user_modify()
297 *response = (hashtab_search(policydb->p_users.table, in sepol_user_exists()
326 usrdatum = hashtab_search(policydb->p_users.table, in sepol_user_query()
Dgenbools.c96 datum = hashtab_search(policydb->p_bools.table, name);
127 hashtab_search(policydb->p_bools.table,
224 datum = hashtab_search(policydb.p_bools.table, names[i]);
Dmls.c282 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_context_isvalid()
357 (level_datum_t *) hashtab_search(policydb->p_levels.table, in mls_context_to_sid()
382 (cat_datum_t *) hashtab_search(policydb-> in mls_context_to_sid()
399 hashtab_search(policydb->p_cats. in mls_context_to_sid()
566 (level_datum_t *) hashtab_search(newp->p_levels.table, in mls_convert_context()
585 (cat_datum_t *) hashtab_search(newp->p_cats. in mls_convert_context()
Dcontext.c168 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, in context_from_record()
177 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
186 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()
Droles.c16 *response = (hashtab_search(policydb->p_roles.table, in sepol_role_exists()
Dgenusers.c87 usrdatum = hashtab_search(policydb->p_users.table, q);
164 roldatum = hashtab_search(policydb->p_roles.table, q);
Dservices.c1114 hashtab_search(tclass_datum->permissions.table, in sepol_string_to_av_perm()
1125 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm()
1393 perdatum2 = (perm_datum_t *) hashtab_search(h, key); in validate_perm()
1419 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
1507 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context()
1518 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
1528 hashtab_search(args->newp->p_types.table, in convert_context()
1932 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
Dpolicydb_public.c191 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
Dexpand.c243 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback()
559 hashtab_search(state->out->p_commons.table, in class_copy_callback()
584 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
620 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback()
650 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback()
680 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback()
834 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
853 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback()
899 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback()
976 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
[all …]
Dhashtab.c178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search() function
Dhierarchy.c83 *parent = hashtab_search(a->p->p_##prefix##s.table, parent_name); \
/external/checkpolicy/
Dpolicy_define.c221 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
340 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
370 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
402 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
434 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
468 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
562 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
586 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms()
624 (perm_datum_t *) hashtab_search(cladatum->comdatum-> in define_av_perms()
813 (level_datum_t *) hashtab_search(policydbp->p_levels.table, in define_dominance()
[all …]
Dmodule_compiler.c141 (symtab_datum_t *) hashtab_search(policydbp-> in declare_symbol()
183 bounds = hashtab_search(roles_tab, bounds_id); in role_implicit_bounds()
246 dest_role = (role_datum_t *) hashtab_search(roles_tab, dest_id); in declare_role()
387 bounds = hashtab_search(users_tab, bounds_id); in user_implicit_bounds()
451 dest_user = (user_datum_t *) hashtab_search(users_tab, dest_id); in declare_user()
525 dest_typdatum = hashtab_search(types_tab, id); in get_local_type()
574 dest_roledatum = hashtab_search(roles_tab, id); in get_local_role()
636 (symtab_datum_t *) hashtab_search(policydbp-> in require_symbol()
657 (type_datum_t *) hashtab_search(policydbp-> in require_symbol()
799 hashtab_search(policydbp->p_classes.table, in require_class()
[all …]
Dcheckpolicy.c354 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
679 (class_datum_t *) hashtab_search(policydb. in main()
793 (class_datum_t *) hashtab_search(policydb. in main()
988 (class_datum_t *) hashtab_search(policydb. in main()
/external/libsepol/include/sepol/policydb/
Dhashtab.h98 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k);
/external/checkpolicy/test/
Ddismod.c106 (scope_datum_t *) hashtab_search(p->scope[symbol_type].table, id); in display_id()
579 bool = hashtab_search(p->p_bools.table, name);

12