fix xscreensaver slideshow permissions

This commit is contained in:
Fredrik Eriksson 2020-05-17 16:16:52 +02:00
parent afc541830b
commit 42907ca795
Signed by: feffe
GPG Key ID: 18524638BE25530A

View File

@ -54,6 +54,12 @@ tunable_policy(`feffe_xscreensaver_read_home',`
type bin_t;
type xscreensaver_helper_exec_t;
type fs_t;
type usr_t;
type var_t;
type xdg_data_t;
type xauth_home_t;
type xserver_t;
')
dev_rw_dri(xscreensaver_helper_t)
dev_rw_dri(xscreensaver_t)
@ -73,5 +79,19 @@ tunable_policy(`feffe_xscreensaver_read_home',`
allow xscreensaver_t fs_t:filesystem getattr;
xdg_manage_cache(xscreensaver_helper_t)
allow xscreensaver_helper_t self:unix_stream_socket create_stream_socket_perms;
allow xscreensaver_helper_t xserver_t:fd use;
allow xscreensaver_t self:process execmem;
read_files_pattern(xscreensaver_helper_t, xauth_home_t, xauth_home_t)
dontaudit xscreensaver_helper_t usr_t:file map;
dontaudit xscreensaver_helper_t usr_t:dir search;
dontaudit xscreensaver_helper_t var_t:dir search;
dontaudit xscreensaver_helper_t xdg_data_t:dir search;
dontaudit xscreensaver_helper_t self:process setsched;
dontaudit xscreensaver_t xdg_config_t:dir search;
dontaudit xscreensaver_t xdg_data_t:dir search;
')