diff --git a/policy/modules/admin/alsa.if b/policy/modules/admin/alsa.if index 91b6eef..69aa742 100644 --- a/policy/modules/admin/alsa.if +++ b/policy/modules/admin/alsa.if @@ -107,7 +107,7 @@ interface(`alsa_manage_rw_config',` ######################################## ## -## Read Alsa lib files. +## Read Alsa home files. ## ## ## @@ -115,18 +115,18 @@ interface(`alsa_manage_rw_config',` ## ## # -interface(`alsa_read_lib',` +interface(`alsa_read_home_files',` gen_require(` - type alsa_var_lib_t; + type alsa_home_t; ') - files_search_var_lib($1) - read_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) + userdom_search_user_home_dirs($1) + allow $1 alsa_home_t:file read_file_perms; ') ######################################## ## -## Read Alsa home files. +## Read Alsa lib files. ## ## ## @@ -134,11 +134,11 @@ interface(`alsa_read_lib',` ## ## # -interface(`alsa_read_home_files',` +interface(`alsa_read_lib',` gen_require(` - type alsa_home_t; + type alsa_var_lib_t; ') - userdom_search_user_home_dirs($1) - allow $1 alsa_home_t:file read_file_perms; + files_search_var_lib($1) + read_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t) ')