/third_party/selinux/libsepol/src/ |
D | policydb_validate.c | 217 if (hashtab_map(scopes[i].table, validate_scope, &num_decls)) in validate_scopes() 738 if (hashtab_map(p->p_commons.table, validate_common_datum_wrapper, &margs)) in validate_datum_array_entries() 741 if (hashtab_map(p->p_classes.table, validate_class_datum_wrapper, &margs)) in validate_datum_array_entries() 744 if (hashtab_map(p->p_roles.table, validate_role_datum_wrapper, &margs)) in validate_datum_array_entries() 747 if (hashtab_map(p->p_types.table, validate_type_datum_wrapper, &margs)) in validate_datum_array_entries() 750 if (hashtab_map(p->p_users.table, validate_user_datum_wrapper, &margs)) in validate_datum_array_entries() 753 if (p->mls && hashtab_map(p->p_levels.table, validate_level_datum, flavors)) in validate_datum_array_entries() 756 if (hashtab_map(p->p_cats.table, validate_datum, &flavors[SYM_CATS])) in validate_datum_array_entries() 759 if (hashtab_map(p->p_bools.table, validate_bool_datum_wrapper, &margs)) in validate_datum_array_entries() 1105 if (hashtab_map(filename_trans, validate_filename_trans, flavors)) { in validate_filename_trans_hashtab() [all …]
|
D | hierarchy.c | 496 rc = hashtab_map(p->p_types.table, bounds_check_type_callback, &args); in bounds_check_types() 541 hashtab_map(p->p_roles.table, bounds_check_role_callback, &args); in bounds_check_roles() 584 hashtab_map(p->p_users.table, bounds_check_user_callback, &args); in bounds_check_users() 650 rc = hashtab_map(p->p_users.table, hierarchy_add_user_callback, &args); in add_hierarchy_callback_template() 653 rc = hashtab_map(p->p_roles.table, hierarchy_add_role_callback, &args); in add_hierarchy_callback_template() 656 rc = hashtab_map(p->p_types.table, hierarchy_add_type_callback, &args); in add_hierarchy_callback_template()
|
D | expand.c | 305 if (hashtab_map in common_copy_callback() 503 if (hashtab_map in class_copy_callback() 3039 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) { in expand_module() 3044 if (hashtab_map in expand_module() 3050 if (hashtab_map in expand_module() 3057 if (hashtab_map in expand_module() 3063 if (hashtab_map(state.base->p_types.table, in expand_module() 3068 if (hashtab_map(state.base->p_types.table, alias_copy_callback, &state)) in expand_module() 3078 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state)) in expand_module() 3080 if (hashtab_map(state.base->p_roles.table, in expand_module() [all …]
|
D | util.c | 102 rc = hashtab_map(cladatum->permissions.table, in sepol_av_to_string() 105 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
|
D | link.c | 335 hashtab_map(cladatum->permissions.table, permission_copy_callback, in class_copy_callback() 1577 hashtab_map(src_symtab[i].table, copy_callback_f[i], in copy_identifiers() 1585 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers() 1589 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers() 1593 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers() 1597 if (hashtab_map(src_symtab[SYM_USERS].table, in copy_identifiers() 1604 hashtab_map(src_symtab[i].table, fix_callback_f[i], in copy_identifiers() 1887 if (hashtab_map in copy_module() 1989 (void)hashtab_map(cladatum->permissions.table, find_perm, in is_decl_requires_met() 1992 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met() [all …]
|
D | write.c | 671 rc = hashtab_map(p->filename_trans, filename_write_one_compat, in filename_trans_write() 679 rc = hashtab_map(p->filename_trans, filename_write_one, fp); in filename_trans_write() 970 if (hashtab_map(comdatum->permissions.table, perm_write, pd)) in common_write() 1073 if (hashtab_map(cladatum->permissions.table, perm_write, pd)) in class_write() 1729 rc = hashtab_map(p->range_tr, rangetrans_count, &args); in range_write() 1738 return hashtab_map(p->range_tr, range_write_helper, &args); in range_write() 2083 if (hashtab_map(decl->symtab[i].table, write_f[i], &pd)) { in avrule_decl_write() 2334 hashtab_map(p->symtab[i].table, type_attr_uncount, &buf[1]); in policydb_write() 2347 (void)hashtab_map(p->symtab[i].table, role_attr_uncount, &buf[1]); in policydb_write() 2353 if (hashtab_map(p->symtab[i].table, write_f[i], &pd)) in policydb_write() [all …]
|
D | kernel_to_cil.c | 446 rc = hashtab_map(permtab->table, hashtab_ordered_to_strs, strs); in class_or_common_perms_to_str() 864 rc = hashtab_map(pdb->p_levels.table, map_count_sensitivity_aliases, &num); in write_sensitivity_rules_to_cil() 880 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_cil() 968 rc = hashtab_map(pdb->p_cats.table, map_count_category_aliases, &num); in write_category_rules_to_cil() 984 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_cil() 1338 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_cil() 1434 rc = hashtab_map(pdb->p_types.table, map_count_type_aliases, &num); in write_type_alias_rules_to_cil() 1444 rc = hashtab_map(pdb->p_types.table, map_type_aliases_to_strs, strs); in write_type_alias_rules_to_cil() 1923 rc = hashtab_map(pdb->filename_trans, map_filename_trans_to_str, &args); in write_filename_trans_rules_to_cil() 2034 rc = hashtab_map(pdb->range_tr, map_range_trans_to_str, &args); in write_range_trans_rules_to_cil()
|
D | policydb.c | 1147 if (hashtab_map(p->p_commons.table, common_index, p)) in policydb_index_classes() 1162 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes() 1177 if (hashtab_map(p->p_bools.table, cond_index_bool, p)) in policydb_index_bools() 1278 if (hashtab_map(p->symtab[i].table, index_f[i], p)) in policydb_index_others() 1284 if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) in policydb_index_others() 1287 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others() 1316 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy() 1334 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy() 1520 (void)hashtab_map(p->scope[i].table, scope_destroy, 0); in policydb_destroy() 1567 hashtab_map(p->filename_trans, filenametr_destroy, NULL); in policydb_destroy() [all …]
|
D | kernel_to_conf.c | 532 rc = hashtab_map(permtab->table, hashtab_ordered_to_strs, strs); in class_or_common_perms_to_str() 807 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_conf() 938 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_conf() 1321 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_conf() 1417 rc = hashtab_map(pdb->p_types.table, map_count_type_aliases, &num); in write_type_alias_rules_to_conf() 1427 rc = hashtab_map(pdb->p_types.table, map_type_aliases_to_strs, strs); in write_type_alias_rules_to_conf() 1899 rc = hashtab_map(pdb->filename_trans, map_filename_trans_to_str, &args); in write_filename_trans_rules_to_conf() 2010 rc = hashtab_map(pdb->range_tr, map_range_trans_to_str, &args); in write_range_trans_rules_to_conf()
|
D | hashtab.c | 220 int hashtab_map(hashtab_t h, in hashtab_map() function
|
D | module_to_cil.c | 319 rc = hashtab_map(roles_tab, roles_gather_map, role_list); in role_list_create() 400 rc = hashtab_map(pdb->p_types.table, typealiases_gather_map, pdb); in typealias_list_create() 1687 rc = hashtab_map(common->permissions.table, class_perm_to_array, &arr); in common_to_cil() 1992 rc = hashtab_map(class->permissions.table, class_perm_to_array, &arr); in class_to_cil() 3582 rc = hashtab_map(decl->symtab[args.sym_index].table, additive_scopes_to_cil_map, &args); in additive_scopes_to_cil() 3786 rc = hashtab_map(pdb->p_commons.table, common_to_cil, NULL); in global_block_to_cil()
|
D | services.c | 1558 if (hashtab_map in validate_class() 1567 if (hashtab_map(cladatum->permissions.table, validate_perm, in validate_class() 1811 if (hashtab_map in sepol_load_policy()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 106 extern int hashtab_map(hashtab_t h,
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_strpool.c | 118 hashtab_map(cil_strpool_tab, cil_strpool_entry_destroy, NULL); in cil_strpool_destroy()
|
D | cil_symtab.c | 133 return hashtab_map(symtab->table, apply, args); in cil_symtab_map()
|
D | cil_binary.c | 4215 rc = hashtab_map(policydb->p_commons.table, &__cil_common_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4222 rc = hashtab_map(policydb->p_classes.table, &__cil_class_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4229 rc = hashtab_map(policydb->p_roles.table, &__cil_role_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4236 rc = hashtab_map(policydb->p_types.table, &__cil_type_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4243 rc = hashtab_map(policydb->p_users.table, &__cil_user_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4250 rc = hashtab_map(policydb->p_bools.table, &__cil_bool_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4256 rc = hashtab_map(policydb->p_levels.table, &__cil_level_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 4262 rc = hashtab_map(policydb->p_cats.table, &__cil_cat_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 5127 rc = hashtab_map(avrulex_ioctl_table, __cil_avrulex_ioctl_to_policydb, pdb); in cil_binary_create_allocated_pdb() 5187 if (hashtab_map(pdb->p_roles.table, policydb_role_cache, pdb)) { in cil_binary_create_allocated_pdb() [all …]
|
/third_party/selinux/ |
D | libsepol.map | 48 "hashtab_map";
|
/third_party/selinux/checkpolicy/ |
D | checkpolicy.c | 619 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main() 800 hashtab_map(cladatum-> in main() 806 hashtab_map in main()
|
D | module_compiler.c | 776 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in class_datum_destroy()
|
D | policy_define.c | 1124 if (hashtab_map in define_level() 3030 hashtab_map(policydbp->p_roles.table, in define_role_dom() 3066 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
|
/third_party/selinux/libsepol/tests/ |
D | test-common.c | 149 hashtab_map(p->symtab[i].table, test_index_f[i], p); in test_policydb_indexes()
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 360 if (hashtab_map(p->p_types.table, display_type_callback, fp)) in display_types() 941 if (hashtab_map in main()
|
D | dispol.c | 368 hashtab_map(p->filename_trans, filenametr_display, &args); in display_filename_trans()
|