Home
last modified time | relevance | path

Searched refs:hashtab_map (Results 1 – 23 of 23) sorted by relevance

/third_party/selinux/libsepol/src/
Dhierarchy.c496 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()
Dexpand.c305 if (hashtab_map in common_copy_callback()
503 if (hashtab_map in class_copy_callback()
3011 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) { in expand_module()
3016 if (hashtab_map in expand_module()
3022 if (hashtab_map in expand_module()
3029 if (hashtab_map in expand_module()
3035 if (hashtab_map(state.base->p_types.table, in expand_module()
3040 if (hashtab_map(state.base->p_types.table, alias_copy_callback, &state)) in expand_module()
3050 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state)) in expand_module()
3052 if (hashtab_map(state.base->p_roles.table, in expand_module()
[all …]
Dutil.c97 rc = hashtab_map(cladatum->permissions.table, in sepol_av_to_string()
100 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
Dlink.c333 hashtab_map(cladatum->permissions.table, permission_copy_callback, in class_copy_callback()
1617 hashtab_map(src_symtab[i].table, copy_callback_f[i], in copy_identifiers()
1625 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers()
1629 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers()
1633 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers()
1637 if (hashtab_map(src_symtab[SYM_USERS].table, in copy_identifiers()
1644 hashtab_map(src_symtab[i].table, fix_callback_f[i], in copy_identifiers()
1934 if (hashtab_map in copy_module()
2036 (void)hashtab_map(cladatum->permissions.table, find_perm, in is_decl_requires_met()
2039 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met()
[all …]
Dwrite.c671 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()
1727 rc = hashtab_map(p->range_tr, rangetrans_count, &args); in range_write()
1736 return hashtab_map(p->range_tr, range_write_helper, &args); in range_write()
2061 if (hashtab_map(decl->symtab[i].table, write_f[i], &pd)) { in avrule_decl_write()
2312 hashtab_map(p->symtab[i].table, type_attr_uncount, &buf[1]); in policydb_write()
2325 (void)hashtab_map(p->symtab[i].table, role_attr_uncount, &buf[1]); in policydb_write()
2331 if (hashtab_map(p->symtab[i].table, write_f[i], &pd)) in policydb_write()
[all …]
Dkernel_to_cil.c437 rc = hashtab_map(permtab->table, hashtab_ordered_to_strs, strs); in class_or_common_perms_to_str()
843 rc = hashtab_map(pdb->p_levels.table, map_count_sensitivity_aliases, &num); in write_sensitivity_rules_to_cil()
859 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_cil()
947 rc = hashtab_map(pdb->p_cats.table, map_count_category_aliases, &num); in write_category_rules_to_cil()
963 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_cil()
1312 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_cil()
1408 rc = hashtab_map(pdb->p_types.table, map_count_type_aliases, &num); in write_type_alias_rules_to_cil()
1418 rc = hashtab_map(pdb->p_types.table, map_type_aliases_to_strs, strs); in write_type_alias_rules_to_cil()
1897 rc = hashtab_map(pdb->filename_trans, map_filename_trans_to_str, &args); in write_filename_trans_rules_to_cil()
2008 rc = hashtab_map(pdb->range_tr, map_range_trans_to_str, &args); in write_range_trans_rules_to_cil()
Dpolicydb_validate.c159 if (hashtab_map(scopes[i].table, validate_scope, &num_decls)) in validate_scopes()
554 if (hashtab_map(filename_trans, validate_filename_trans, flavors)) { in validate_filename_trans_hashtab()
682 if (hashtab_map(symtabs[i].table, validate_datum, &flavors[i].nprim)) { in validate_symtabs()
Dpolicydb.c1135 if (hashtab_map(p->p_commons.table, common_index, p)) in policydb_index_classes()
1150 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes()
1165 if (hashtab_map(p->p_bools.table, cond_index_bool, p)) in policydb_index_bools()
1265 if (hashtab_map(p->symtab[i].table, index_f[i], p)) in policydb_index_others()
1271 if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) in policydb_index_others()
1274 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others()
1303 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy()
1321 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1507 (void)hashtab_map(p->scope[i].table, scope_destroy, 0); in policydb_destroy()
1554 hashtab_map(p->filename_trans, filenametr_destroy, NULL); in policydb_destroy()
[all …]
Dkernel_to_conf.c521 rc = hashtab_map(permtab->table, hashtab_ordered_to_strs, strs); in class_or_common_perms_to_str()
785 rc = hashtab_map(pdb->p_levels.table, map_sensitivity_aliases_to_strs, strs); in write_sensitivity_rules_to_conf()
916 rc = hashtab_map(pdb->p_cats.table, map_category_aliases_to_strs, strs); in write_category_rules_to_conf()
1300 rc = hashtab_map(pdb->p_bools.table, map_boolean_to_strs, strs); in write_boolean_decl_rules_to_conf()
1396 rc = hashtab_map(pdb->p_types.table, map_count_type_aliases, &num); in write_type_alias_rules_to_conf()
1406 rc = hashtab_map(pdb->p_types.table, map_type_aliases_to_strs, strs); in write_type_alias_rules_to_conf()
1878 rc = hashtab_map(pdb->filename_trans, map_filename_trans_to_str, &args); in write_filename_trans_rules_to_conf()
1989 rc = hashtab_map(pdb->range_tr, map_range_trans_to_str, &args); in write_range_trans_rules_to_conf()
Dhashtab.c221 int hashtab_map(hashtab_t h, in hashtab_map() function
Dmodule_to_cil.c319 rc = hashtab_map(roles_tab, roles_gather_map, role_list); in role_list_create()
398 rc = hashtab_map(pdb->p_types.table, typealiases_gather_map, pdb); in typealias_list_create()
1681 rc = hashtab_map(common->permissions.table, class_perm_to_array, &arr); in common_to_cil()
1985 rc = hashtab_map(class->permissions.table, class_perm_to_array, &arr); in class_to_cil()
3545 rc = hashtab_map(decl->symtab[args.sym_index].table, additive_scopes_to_cil_map, &args); in additive_scopes_to_cil()
3749 rc = hashtab_map(pdb->p_commons.table, common_to_cil, NULL); in global_block_to_cil()
Dservices.c1551 if (hashtab_map in validate_class()
1560 if (hashtab_map(cladatum->permissions.table, validate_perm, in validate_class()
1804 if (hashtab_map in sepol_load_policy()
/third_party/selinux/libsepol/include/sepol/policydb/
Dhashtab.h106 extern int hashtab_map(hashtab_t h,
/third_party/selinux/libsepol/cil/src/
Dcil_strpool.c118 hashtab_map(cil_strpool_tab, cil_strpool_entry_destroy, NULL); in cil_strpool_destroy()
Dcil_symtab.c133 return hashtab_map(symtab->table, apply, args); in cil_symtab_map()
Dcil_binary.c4081 rc = hashtab_map(policydb->p_commons.table, &__cil_common_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4088 rc = hashtab_map(policydb->p_classes.table, &__cil_class_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4095 rc = hashtab_map(policydb->p_roles.table, &__cil_role_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4102 rc = hashtab_map(policydb->p_types.table, &__cil_type_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4109 rc = hashtab_map(policydb->p_users.table, &__cil_user_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4116 rc = hashtab_map(policydb->p_bools.table, &__cil_bool_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4122 rc = hashtab_map(policydb->p_levels.table, &__cil_level_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4128 rc = hashtab_map(policydb->p_cats.table, &__cil_cat_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4981 rc = hashtab_map(avrulex_ioctl_table, __cil_avrulex_ioctl_to_policydb, pdb); in cil_binary_create_allocated_pdb()
5041 if (hashtab_map(pdb->p_roles.table, policydb_role_cache, pdb)) { in cil_binary_create_allocated_pdb()
[all …]
/third_party/selinux/
Dlibsepol.map48 "hashtab_map";
/third_party/selinux/checkpolicy/
Dcheckpolicy.c619 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main()
800 hashtab_map(cladatum-> in main()
806 hashtab_map in main()
Dmodule_compiler.c775 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in class_datum_destroy()
Dpolicy_define.c1125 if (hashtab_map in define_level()
3021 hashtab_map(policydbp->p_roles.table, in define_role_dom()
3057 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
/third_party/selinux/libsepol/tests/
Dtest-common.c148 hashtab_map(p->symtab[i].table, test_index_f[i], p); in test_policydb_indexes()
/third_party/selinux/checkpolicy/test/
Ddismod.c360 if (hashtab_map(p->p_types.table, display_type_callback, fp)) in display_types()
941 if (hashtab_map in main()
Ddispol.c368 hashtab_map(p->filename_trans, filenametr_display, &args); in display_filename_trans()