/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 | 35 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()
|
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 | 40 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()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 233 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 352 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes() 383 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user() 415 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role() 447 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type() 479 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range() 513 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 607 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms() 631 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms() 669 (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 | 361 bool = hashtab_search(policydbp->p_bools.table, name); in change_bool() 743 (class_datum_t *) hashtab_search(policydb. in main() 857 (class_datum_t *) hashtab_search(policydb. in main() 1054 (class_datum_t *) hashtab_search(policydb. in main() 1152 (class_datum_t *) hashtab_search(policydb. in main() 1205 (class_datum_t *) hashtab_search(policydb. in main()
|
/external/selinux/libsepol/src/ |
D | avrule_block.c | 158 (scope_datum_t *) hashtab_search(p->scope[symbol_table].table, id); in is_id_enabled() 202 (class_datum_t *) hashtab_search(p->p_classes.table, class_id); in is_perm_enabled() 206 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled() 211 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
|
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 | booleans.c | 31 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 | mls.c | 288 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()
|
D | users.c | 142 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()
|
D | genbools.c | 107 datum = hashtab_search(policydb->p_bools.table, name); 138 hashtab_search(policydb->p_bools.table, 235 datum = hashtab_search(policydb.p_bools.table, names[i]);
|
D | context.c | 169 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()
|
D | kernel_to_cil.c | 500 common = hashtab_search(pdb->p_commons.table, name); in write_class_decl_rules_to_cil() 809 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 825 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 854 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 865 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 914 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 930 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 959 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 970 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 1096 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivitycategory_rules_to_cil() [all …]
|
D | roles.c | 16 *response = (hashtab_search(policydb->p_roles.table, role) != NULL); in sepol_role_exists()
|
D | genusers.c | 88 usrdatum = hashtab_search(policydb->p_users.table, q); 165 roldatum = hashtab_search(policydb->p_roles.table, q);
|
D | services.c | 1225 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class() 1254 hashtab_search(tclass_datum->permissions.table, in sepol_string_to_av_perm() 1265 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1533 perdatum2 = (perm_datum_t *) hashtab_search(h, key); in validate_perm() 1559 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class() 1647 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context() 1658 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context() 1668 hashtab_search(args->newp->p_types.table, in convert_context() 2182 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
|
D | kernel_to_conf.c | 544 common = hashtab_search(pdb->p_commons.table, name); in write_class_and_common_rules_to_conf() 787 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 811 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 836 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 914 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 938 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 1073 level = hashtab_search(pdb->p_levels.table, name); in write_level_rules_to_conf() 1380 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_conf() 1434 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_conf() 2133 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_conf() [all …]
|
D | expand.c | 169 new_type = hashtab_search(state->out->p_types.table, id); in attr_convert_callback() 485 hashtab_search(state->out->p_commons.table, in class_copy_callback() 510 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback() 546 dest = hashtab_search(state->out->p_types.table, (char *)key); in type_bounds_copy_callback() 576 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback() 606 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback() 760 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback() 779 regular_role = (role_datum_t *)hashtab_search( in role_fix_callback() 825 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback() 902 levdatum = (level_datum_t *) hashtab_search(p->p_levels.table, in mls_semantic_level_expand() [all …]
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 102 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
|
/external/selinux/policycoreutils/newrole/ |
D | hashtab.h | 104 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
|
/external/selinux/libsepol/cil/src/ |
D | cil_strpool.c | 76 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add()
|