diff --git a/policy/modules/services/minidlna.te b/policy/modules/services/minidlna.te index b980d2707..4d87e8ee7 100644 --- a/policy/modules/services/minidlna.te +++ b/policy/modules/services/minidlna.te @@ -82,10 +82,6 @@ logging_search_logs(minidlna_t) miscfiles_read_localization(minidlna_t) miscfiles_read_public_files(minidlna_t) -xdg_read_music(minidlna_t) -xdg_read_pictures(minidlna_t) -xdg_read_videos(minidlna_t) - tunable_policy(`minidlna_read_generic_user_content',` userdom_list_user_tmp(minidlna_t) userdom_read_user_home_content_files(minidlna_t) @@ -101,3 +97,9 @@ tunable_policy(`minidlna_read_generic_user_content',` userdom_dontaudit_read_user_home_content_files(minidlna_t) userdom_dontaudit_read_user_tmp_files(minidlna_t) ') + +optional_policy(` + xdg_read_music(minidlna_t) + xdg_read_pictures(minidlna_t) + xdg_read_videos(minidlna_t) +')