/third_party/selinux/libsepol/tests/ |
D | test-expander-attr-map.c | 94 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5")… in test_expander_attr_mapping() 95 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_1… in test_expander_attr_mapping() 96 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_2… in test_expander_attr_mapping() 97 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8")… in test_expander_attr_mapping() 98 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_1… in test_expander_attr_mapping() 99 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_2… in test_expander_attr_mapping() 100 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4")); in test_expander_attr_mapping() 101 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_1_… in test_expander_attr_mapping() 102 …CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_2_… in test_expander_attr_mapping() 103 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 | 37 if (!hashtab_search(p->symtab[sym_type].table, id)) { in test_sym_presence() 42 scope = hashtab_search(p->scope[sym_type].table, id); in test_sym_presence() 157 type = hashtab_search(p->p_types.table, id); in test_alias_datum() 158 primary = hashtab_search(p->p_types.table, primary_id); in test_alias_datum() 193 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set() 195 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() 238 attr = hashtab_search(p->p_types.table, id); in test_attr_types()
|
D | helpers.c | 68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); in test_find_decl_by_sym()
|
D | test-expander-users.c | 41 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
|
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()
|
D | test-linker-cond-map.c | 82 b = hashtab_search(p->p_bools.table, bool); in test_bool_state()
|
/third_party/selinux/checkpolicy/ |
D | policy_define.c | 229 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 …]
|
D | module_compiler.c | 169 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() 826 datum = hashtab_search(policydbp->p_classes.table, class_id); in require_class() [all …]
|
D | checkpolicy.c | 359 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool() 776 (class_datum_t *) hashtab_search(policydb. in main() 890 (class_datum_t *) hashtab_search(policydb. in main() 1095 (class_datum_t *) hashtab_search(policydb. in main() 1191 (class_datum_t *) hashtab_search(policydb. in main() 1242 (class_datum_t *) hashtab_search(policydb. in main()
|
/third_party/selinux/libsepol/src/ |
D | avrule_block.c | 158 (scope_datum_t *) hashtab_search(p->scope[symbol_table].table, id); in is_id_enabled() 203 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled() 207 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled() 212 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
|
D | booleans.c | 31 datum = 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()
|
D | link.c | 137 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 …]
|
D | mls.c | 288 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, key); 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() 584 (cat_datum_t *) hashtab_search(newp->p_cats. in mls_convert_context() 623 r = hashtab_search(policydb->range_tr, (hashtab_key_t) &rtr); in mls_compute_sid()
|
D | users.c | 140 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_modify() 163 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify() 297 *response = (hashtab_search(policydb->p_users.table, cname) != NULL); in sepol_user_exists() 323 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_query()
|
D | context.c | 168 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()
|
D | services.c | 1184 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class() 1213 hashtab_search(tclass_datum->permissions.table, in sepol_string_to_av_perm() 1224 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1509 perdatum2 = (perm_datum_t *) hashtab_search(h, key); in validate_perm() 1535 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class() 1623 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context() 1634 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context() 1644 hashtab_search(args->newp->p_types.table, in convert_context() 2158 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
|
D | kernel_to_cil.c | 508 common = hashtab_search(pdb->p_commons.table, name); in write_class_decl_rules_to_cil() 875 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 979 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 1102 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivitycategory_rules_to_cil() 1440 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_cil() 1494 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_cil() 2209 role = hashtab_search(pdb->p_roles.table, child); in write_role_decl_rules_to_cil() 2226 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_cil() 2410 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil() 2451 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil() [all …]
|
D | kernel_to_conf.c | 556 common = hashtab_search(pdb->p_commons.table, name); in write_class_and_common_rules_to_conf() 802 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 830 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 855 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 933 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 961 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 1093 level = hashtab_search(pdb->p_levels.table, name); in write_level_rules_to_conf() 1419 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_conf() 1473 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_conf() 2185 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_conf() [all …]
|
D | policydb_public.c | 212 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
|
D | expand.c | 199 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback() 518 hashtab_search(state->out->p_commons.table, in class_copy_callback() 543 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback() 579 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback() 609 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback() 639 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback() 793 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback() 811 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback() 856 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback() 933 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand() [all …]
|
D | hashtab.c | 177 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) in hashtab_search() function
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 88 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_strpool.c | 73 strpool_ref = hashtab_search(cil_strpool_tab, str); in cil_strpool_add()
|
D | cil_binary.c | 81 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum() 92 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum() 103 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum() 114 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum() 125 *sepol_cat = hashtab_search(pdb->p_cats.table, datum->fqn); in __cil_get_sepol_cat_datum() 136 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum() 323 sepol_common = hashtab_search(pdb->p_commons.table, key); in cil_classorder_to_policydb() 1218 sepol_perm = hashtab_search(sepol_class->permissions.table, perm_str); in __perm_str_to_datum() 1221 sepol_perm = hashtab_search(sepol_common->permissions.table, perm_str); in __perm_str_to_datum() 1699 hashtab_xperms = (ebitmap_t *)hashtab_search(h, (hashtab_key_t)avtab_key); in __cil_avrulex_ioctl_to_hashtable() [all …]
|
/third_party/selinux/ |
D | libsepol.map | 28 "hashtab_search";
|