Home
last modified time | relevance | path

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

12

/external/selinux/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()
191 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set()
193 role = hashtab_search(p->p_roles.table, id); in test_role_type_set()
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()
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/selinux/checkpolicy/
Dpolicy_define.c229 t = hashtab_search(policydbp->p_types.table, type); in define_permissive()
348 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
379 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
411 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
443 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
475 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
509 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
627 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms()
665 (perm_datum_t *) hashtab_search(cladatum->comdatum-> in define_av_perms()
[all …]
Dmodule_compiler.c169 hashtab_search(policydbp->symtab[symbol_type].table, in create_symbol()
232 bounds = hashtab_search(roles_tab, bounds_id); in role_implicit_bounds()
294 *role = hashtab_search(policydbp->symtab[SYM_ROLES].table, id); in create_role()
338 dest_role = hashtab_search(roles_tab, key); in declare_role()
430 *type = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in create_type()
477 bounds = hashtab_search(users_tab, bounds_id); in user_implicit_bounds()
572 dest_user = hashtab_search(users_tab, key); in declare_user()
631 dest_typdatum = hashtab_search(types_tab, id); in get_local_type()
680 dest_roledatum = hashtab_search(roles_tab, id); in get_local_role()
825 datum = hashtab_search(policydbp->p_classes.table, class_id); in require_class()
[all …]
Dcheckpolicy.c355 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool()
714 (class_datum_t *) hashtab_search(policydb. in main()
828 (class_datum_t *) hashtab_search(policydb. in main()
1025 (class_datum_t *) hashtab_search(policydb. in main()
1123 (class_datum_t *) hashtab_search(policydb. in main()
1176 (class_datum_t *) hashtab_search(policydb. in main()
/external/selinux/libsepol/src/
Davrule_block.c158 (scope_datum_t *) hashtab_search(p->scope[symbol_table].table, id); in is_id_enabled()
187 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled()
191 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled()
196 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
Dbooleans.c31 hashtab_search(policydb->p_bools.table, name); in bool_update()
134 *response = (hashtab_search(policydb->p_bools.table, name) != NULL); in sepol_bool_exists()
155 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()
649 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id); in bool_copy_callback()
677 base_level = hashtab_search(state->base->p_levels.table, id); in sens_copy_callback()
[all …]
Dmls.c288 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, key); in mls_context_isvalid()
359 (level_datum_t *) hashtab_search(policydb->p_levels.table, in mls_context_to_sid()
384 (cat_datum_t *) hashtab_search(policydb-> in mls_context_to_sid()
401 hashtab_search(policydb->p_cats. in mls_context_to_sid()
568 (level_datum_t *) hashtab_search(newp->p_levels.table, in mls_convert_context()
587 (cat_datum_t *) hashtab_search(newp->p_cats. in mls_convert_context()
627 r = hashtab_search(policydb->range_tr, (hashtab_key_t) &rtr); in mls_compute_sid()
Dusers.c142 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_modify()
165 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify()
302 *response = (hashtab_search(policydb->p_users.table, cname) != NULL); in sepol_user_exists()
328 usrdatum = hashtab_search(policydb->p_users.table, cname); 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]);
Dcontext.c169 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, in context_from_record()
178 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
187 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()
Droles.c16 *response = (hashtab_search(policydb->p_roles.table, role) != NULL); in sepol_role_exists()
Dgenusers.c88 usrdatum = hashtab_search(policydb->p_users.table, q);
165 roldatum = hashtab_search(policydb->p_roles.table, q);
Dservices.c1224 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class()
1253 hashtab_search(tclass_datum->permissions.table, in sepol_string_to_av_perm()
1264 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm()
1532 perdatum2 = (perm_datum_t *) hashtab_search(h, key); in validate_perm()
1558 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class()
1646 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context()
1657 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
1667 hashtab_search(args->newp->p_types.table, in convert_context()
2108 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
Dexpand.c168 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback()
484 hashtab_search(state->out->p_commons.table, in class_copy_callback()
509 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
545 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback()
575 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback()
605 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback()
759 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
778 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback()
824 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback()
901 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand()
[all …]
Dpolicydb_public.c208 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h102 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
/external/selinux/policycoreutils/newrole/
Dhashtab.h104 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
/external/selinux/semodule-utils/semodule_deps/
Dsemodule_deps.c170 (scope_datum_t *) hashtab_search(p-> in generate_requires()
187 (hashtab_t) hashtab_search(mods, in generate_requires()
/external/selinux/libsepol/cil/src/
Dcil_strpool.c76 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add()

12