Home
last modified time | relevance | path

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

/external/selinux/python/audit2allow/
Dsepolgen-ifgen-attr-helper.c70 rc = hashtab_map(cladatum->permissions.table, in render_access_mask()
73 rc = hashtab_map(cladatum->comdatum-> in render_access_mask()
223 if (hashtab_map(p->p_types.table, attribute_callback, &cb_data)) { in main()
/external/selinux/libsepol/src/
Dhierarchy.c500 rc = hashtab_map(p->p_types.table, bounds_check_type_callback, &args); in bounds_check_types()
545 hashtab_map(p->p_roles.table, bounds_check_role_callback, &args); in bounds_check_roles()
588 hashtab_map(p->p_users.table, bounds_check_user_callback, &args); in bounds_check_users()
654 rc = hashtab_map(p->p_users.table, hierarchy_add_user_callback, &args); in add_hierarchy_callback_template()
657 rc = hashtab_map(p->p_roles.table, hierarchy_add_role_callback, &args); in add_hierarchy_callback_template()
660 rc = hashtab_map(p->p_types.table, hierarchy_add_type_callback, &args); in add_hierarchy_callback_template()
Dexpand.c274 if (hashtab_map in common_copy_callback()
469 if (hashtab_map in class_copy_callback()
3027 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) { in expand_module()
3032 if (hashtab_map in expand_module()
3038 if (hashtab_map in expand_module()
3045 if (hashtab_map in expand_module()
3051 if (hashtab_map(state.base->p_types.table, in expand_module()
3056 if (hashtab_map(state.base->p_types.table, alias_copy_callback, &state)) in expand_module()
3066 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state)) in expand_module()
3068 if (hashtab_map(state.base->p_roles.table, in expand_module()
[all …]
Dlink.c333 hashtab_map(cladatum->permissions.table, permission_copy_callback, in class_copy_callback()
1624 hashtab_map(src_symtab[i].table, copy_callback_f[i], in copy_identifiers()
1632 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers()
1636 if (hashtab_map(src_symtab[SYM_TYPES].table, in copy_identifiers()
1640 if (hashtab_map(src_symtab[SYM_ROLES].table, in copy_identifiers()
1644 if (hashtab_map(src_symtab[SYM_USERS].table, in copy_identifiers()
1651 hashtab_map(src_symtab[i].table, fix_callback_f[i], in copy_identifiers()
1944 if (hashtab_map in copy_module()
2053 (void)hashtab_map(cladatum->permissions.table, find_perm, in is_decl_requires_met()
2056 rc = hashtab_map(cladatum->comdatum->permissions.table, in is_decl_requires_met()
[all …]
Dutil.c98 rc = hashtab_map(cladatum->permissions.table, in sepol_av_to_string()
101 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
Dwrite.c610 rc = hashtab_map(p->filename_trans, filename_write_helper, fp); in filename_trans_write()
903 if (hashtab_map(comdatum->permissions.table, perm_write, pd)) in common_write()
1006 if (hashtab_map(cladatum->permissions.table, perm_write, pd)) in class_write()
1602 rc = hashtab_map(p->range_tr, rangetrans_count, &args); in range_write()
1611 return hashtab_map(p->range_tr, range_write_helper, &args); in range_write()
1899 if (hashtab_map(decl->symtab[i].table, write_f[i], &pd)) { in avrule_decl_write()
2152 hashtab_map(p->symtab[i].table, type_attr_uncount, &buf[1]); in policydb_write()
2165 (void)hashtab_map(p->symtab[i].table, role_attr_uncount, &buf[1]); in policydb_write()
2171 if (hashtab_map(p->symtab[i].table, write_f[i], &pd)) in policydb_write()
2207 if (hashtab_map(p->scope[i].table, scope_write, &pd)) in policydb_write()
Dpolicydb.c1071 if (hashtab_map(p->p_commons.table, common_index, p)) in policydb_index_classes()
1086 if (hashtab_map(p->p_classes.table, class_index, p)) in policydb_index_classes()
1101 if (hashtab_map(p->p_bools.table, cond_index_bool, p)) in policydb_index_bools()
1201 if (hashtab_map(p->symtab[i].table, index_f[i], p)) in policydb_index_others()
1207 if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) in policydb_index_others()
1210 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others()
1239 (void)hashtab_map(comdatum->permissions.table, perm_destroy, 0); in common_destroy()
1258 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1445 (void)hashtab_map(p->scope[i].table, scope_destroy, 0); in policydb_destroy()
1492 hashtab_map(p->filename_trans, filenametr_destroy, NULL); in policydb_destroy()
[all …]
Dhashtab.c222 int hashtab_map(hashtab_t h, in hashtab_map() function
Dmodule_to_cil.c309 rc = hashtab_map(roles_tab, roles_gather_map, role_list); in role_list_create()
382 rc = hashtab_map(pdb->p_types.table, typealiases_gather_map, pdb); in typealias_list_create()
1669 rc = hashtab_map(common->permissions.table, class_perm_to_array, &arr); in common_to_cil()
1957 rc = hashtab_map(class->permissions.table, class_perm_to_array, &arr); in class_to_cil()
3502 rc = hashtab_map(decl->symtab[args.sym_index].table, additive_scopes_to_cil_map, &args); in additive_scopes_to_cil()
3706 rc = hashtab_map(pdb->p_commons.table, common_to_cil, NULL); in global_block_to_cil()
Dservices.c1574 if (hashtab_map in validate_class()
1583 if (hashtab_map(cladatum->permissions.table, validate_perm, in validate_class()
1827 if (hashtab_map in sepol_load_policy()
/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h120 extern int hashtab_map(hashtab_t h,
/external/selinux/policycoreutils/newrole/
Dhashtab.h122 extern int hashtab_map(hashtab_t h,
Dhashtab.c201 int hashtab_map(hashtab_t h, in hashtab_map() function
Dnewrole.c1231 hashtab_map(app_service_names, free_hashtab_entry, NULL); in main()
1358 hashtab_map(app_service_names, free_hashtab_entry, NULL); in main()
/external/selinux/libsepol/cil/src/
Dcil_strpool.c120 hashtab_map(cil_strpool_tab, cil_strpool_entry_destroy, NULL); in cil_strpool_destroy()
Dcil_symtab.c131 return hashtab_map(symtab->table, apply, args); in cil_symtab_map()
Dandroid.c70 hashtab_map(h, ver_map_entry_destroy, NULL); in ver_map_destroy()
830 rc = hashtab_map(vers_map, cil_build_mappings_tree, &extra_args); in cil_attrib_mapping()
Dcil_binary.c3978 rc = hashtab_map(policydb->p_commons.table, &__cil_common_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
3985 rc = hashtab_map(policydb->p_classes.table, &__cil_class_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
3992 rc = hashtab_map(policydb->p_roles.table, &__cil_role_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
3999 rc = hashtab_map(policydb->p_types.table, &__cil_type_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4006 rc = hashtab_map(policydb->p_users.table, &__cil_user_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4013 rc = hashtab_map(policydb->p_bools.table, &__cil_bool_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4019 rc = hashtab_map(policydb->p_levels.table, &__cil_level_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4025 rc = hashtab_map(policydb->p_cats.table, &__cil_cat_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
4912 rc = hashtab_map(avrulex_ioctl_table, __cil_avrulex_ioctl_to_policydb, pdb); in cil_binary_create_allocated_pdb()
4972 if (hashtab_map(pdb->p_roles.table, policydb_role_cache, pdb)) { in cil_binary_create_allocated_pdb()
[all …]
/external/selinux/checkpolicy/
Dcheckpolicy.c586 if (hashtab_map(policydbp->p_levels.table, check_level, NULL)) in main()
738 hashtab_map(cladatum-> in main()
744 hashtab_map in main()
Dmodule_compiler.c775 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in class_datum_destroy()
Dpolicy_define.c1120 if (hashtab_map in define_level()
2954 hashtab_map(policydbp->p_roles.table, in define_role_dom()
2990 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
/external/selinux/libsepol/tests/
Dtest-common.c146 hashtab_map(p->symtab[i].table, test_index_f[i], p); in test_policydb_indexes()
/external/selinux/checkpolicy/test/
Ddismod.c336 if (hashtab_map(p->p_types.table, display_type_callback, fp)) in display_types()
917 if (hashtab_map in main()
Ddispol.c364 hashtab_map(p->filename_trans, filenametr_display, &args); in display_filename_trans()