selinux-policy/policy/modules/apps/xscreensaver.if

35 lines
726 B
Plaintext
Raw Normal View History

## <summary>xscreensaver policy interface</summary>
########################################
## <summary>
## Role access for xscreensaver
## </summary>
## <param name="role">
## <summary>
## Role allowed access
## </summary>
## </param>
## <param name="domain">
## <summary>
## User domain for the role
## </summary>
## </param>
#
interface(`xscreensaver_role',`
gen_require(`
type xscreensaver_t, xscreensaver_exec_t;
')
role $1 types xscreensaver_t;
domtrans_pattern($2, xscreensaver_exec_t, xscreensaver_t)
allow xscreensaver_t $2:fd use;
# Allow the user domain to signal/ps.
ps_process_pattern($2, xscreensaver_t)
allow $2 xscreensaver_t:process signal_perms;
allow xscreensaver_t $2:process sigchld;
')