/third_party/selinux/libsepol/tests/ |
H A 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_t")); in test_expander_attr_mapping() 96 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_5_2_t")); 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_t")); in test_expander_attr_mapping() 99 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_base_optional_disabled_8_2_t")); 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_t")); in test_expander_attr_mapping() 102 CU_ASSERT(!hashtab_search((&base_expanded2)->p_types.table, "attr_check_mod_optional_disabled_4_2_t")); in test_expander_attr_mapping() 103 CU_ASSERT(!hashtab_search(( in test_expander_attr_mapping() [all...] |
H A D | test-common.c | 38 if (!hashtab_search(p->symtab[sym_type].table, id)) { in test_sym_presence() 43 scope = hashtab_search(p->scope[sym_type].table, id); in test_sym_presence() 158 type = hashtab_search(p->p_types.table, id); in test_alias_datum() 159 primary = hashtab_search(p->p_types.table, primary_id); in test_alias_datum() 194 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set() 196 role = hashtab_search(p->p_roles.table, id); in test_role_type_set() 235 attr = hashtab_search(decl->p_types.table, id); in test_attr_types() 239 attr = hashtab_search(p->p_types.table, id); in test_attr_types()
|
H A D | helpers.c | 68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); in test_find_decl_by_sym()
|
H A D | test-expander-users.c | 41 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
|
H A D | test-linker-types.c | 108 type = hashtab_search(p->p_types.table, id); in test_type_datum() 117 type = hashtab_search(p->decl_val_to_struct[decls[i] - 1]->p_types.table, id); in test_type_datum()
|
H A D | test-linker-cond-map.c | 83 b = hashtab_search(p->p_bools.table, bool); in test_bool_state()
|
/third_party/selinux/libsepol/src/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A D | link.c | 138 dest_perm = hashtab_search(dest_class->permissions.table, perm_id); in permission_copy_callback() 141 hashtab_search(dest_class->comdatum->permissions.table, in permission_copy_callback() 257 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback() 265 hashtab_search(state->cur->policy->p_classes_scope.table, in class_copy_callback() 358 base_role = hashtab_search(state->base->p_roles.table, id); in role_copy_callback() 453 base_type = hashtab_search(state->base->p_types.table, id); in type_copy_callback() 543 base_user = hashtab_search(state->base->p_users.table, id); in user_copy_callback() 611 base_bool = hashtab_search(state->base->p_bools.table, id); in bool_copy_callback() 651 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id); in bool_copy_callback() 679 base_level = hashtab_search(stat in sens_copy_callback() [all...] |
H A 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()
|
H A 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()
|
H A D | services.c | 1185 tclass_datum = hashtab_search(policydb->p_classes.table, in sepol_string_to_security_class() 1214 hashtab_search(tclass_datum->permissions.table, in sepol_string_to_av_perm() 1225 hashtab_search(tclass_datum->comdatum->permissions.table, in sepol_string_to_av_perm() 1516 perdatum2 = (perm_datum_t *) hashtab_search(h, key); in validate_perm() 1542 (class_datum_t *) hashtab_search(newp->p_classes.table, key); in validate_class() 1630 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context() 1641 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context() 1651 hashtab_search(args->newp->p_types.table, in convert_context() 2165 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
|
H A D | kernel_to_cil.c | 520 common = hashtab_search(pdb->p_commons.table, name); in write_class_decl_rules_to_cil() 896 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_cil() 1000 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_cil() 1128 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivitycategory_rules_to_cil() 1466 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_cil() 1520 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_cil() 2235 role = hashtab_search(pdb->p_roles.table, child); in write_role_decl_rules_to_cil() 2252 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_cil() 2437 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil() 2478 user = hashtab_search(pd in write_user_decl_rules_to_cil() [all...] |
H A D | kernel_to_conf.c | 568 common = hashtab_search(pdb->p_commons.table, name); in write_class_and_common_rules_to_conf() 824 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 852 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 877 level = hashtab_search(pdb->p_levels.table, name); in write_sensitivity_rules_to_conf() 955 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 983 cat = hashtab_search(pdb->p_cats.table, name); in write_category_rules_to_conf() 1114 level = hashtab_search(pdb->p_levels.table, name); in write_level_rules_to_conf() 1440 alias = hashtab_search(pdb->p_types.table, name); in write_type_alias_rules_to_conf() 1494 type = hashtab_search(pdb->p_types.table, child); in write_type_bounds_rules_to_conf() 2206 role = hashtab_search(pd in write_role_decl_rules_to_conf() [all...] |
H A 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() 937 levdatum = (level_datum_t *) hashtab_search( in mls_semantic_level_expand() [all...] |
H A D | policydb_public.c | 212 return (hashtab_search(p->p.p_classes.table, PACKET_CLASS_NAME) == in sepol_policydb_compat_net()
|
H A D | hashtab.c | 176 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) in hashtab_search() function
|
/third_party/selinux/checkpolicy/ |
H A D | policy_define.c | 228 t = hashtab_search(policydbp->p_types.table, type); in define_permissive() 347 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes() 378 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user() 410 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role() 442 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type() 474 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range() 508 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms() 602 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms() 626 (common_datum_t *) hashtab_search(policydbp->p_commons. in define_av_perms() 664 (perm_datum_t *) hashtab_search(cladatu in define_av_perms() [all...] |
H A D | module_compiler.c | 170 hashtab_search(policydbp->symtab[symbol_type].table, in create_symbol() 233 bounds = hashtab_search(roles_tab, bounds_id); in role_implicit_bounds() 295 *role = hashtab_search(policydbp->symtab[SYM_ROLES].table, id); in create_role() 339 dest_role = hashtab_search(roles_tab, key); in declare_role() 431 *type = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in create_type() 478 bounds = hashtab_search(users_tab, bounds_id); in user_implicit_bounds() 573 dest_user = hashtab_search(users_tab, key); in declare_user() 632 dest_typdatum = hashtab_search(types_tab, id); in get_local_type() 681 dest_roledatum = hashtab_search(roles_tab, id); in get_local_role() 827 datum = hashtab_search(policydb in require_class() [all...] |
H A 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() 1190 (class_datum_t *) hashtab_search(policydb. in main() 1241 (class_datum_t *) hashtab_search(policydb. in main()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
H A D | hashtab.h | 88 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_strpool.c | 73 strpool_ref = hashtab_search(cil_strpool_tab, str); in cil_strpool_add()
|
H A 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() 1300 sepol_perm = hashtab_search(sepol_class->permissions.table, perm_str); in __perm_str_to_datum() 1303 sepol_perm = hashtab_search(sepol_common->permissions.table, perm_str); in __perm_str_to_datum() 1781 hashtab_xperms = (ebitmap_t *)hashtab_search( in __cil_avrulex_ioctl_to_hashtable() [all...] |
H A D | cil_symtab.c | 121 *datum = (struct cil_symtab_datum*)hashtab_search(symtab->table, (hashtab_key_t)key); in cil_symtab_get_datum()
|