Blame policy/modules/apps/xscreensaver.if
|
Chris PeBenito |
1d3b9e |
## <summary>X Screensaver</summary>
|
|
corentin.labbe |
31f9c1 |
|
|
corentin.labbe |
31f9c1 |
########################################
|
|
corentin.labbe |
31f9c1 |
## <summary>
|
|
corentin.labbe |
31f9c1 |
## Role access for xscreensaver
|
|
corentin.labbe |
31f9c1 |
## </summary>
|
|
corentin.labbe |
31f9c1 |
## <param name="role">
|
|
corentin.labbe |
31f9c1 |
## <summary>
|
|
corentin.labbe |
31f9c1 |
## Role allowed access
|
|
corentin.labbe |
31f9c1 |
## </summary>
|
|
corentin.labbe |
31f9c1 |
## </param>
|
|
corentin.labbe |
31f9c1 |
## <param name="domain">
|
|
corentin.labbe |
31f9c1 |
## <summary>
|
|
corentin.labbe |
31f9c1 |
## User domain for the role
|
|
corentin.labbe |
31f9c1 |
## </summary>
|
|
corentin.labbe |
31f9c1 |
## </param>
|
|
corentin.labbe |
31f9c1 |
#
|
|
corentin.labbe |
31f9c1 |
interface(`xscreensaver_role',`
|
|
corentin.labbe |
31f9c1 |
gen_require(`
|
|
corentin.labbe |
31f9c1 |
type xscreensaver_t, xscreensaver_exec_t;
|
|
corentin.labbe |
31f9c1 |
')
|
|
corentin.labbe |
31f9c1 |
|
|
corentin.labbe |
31f9c1 |
role $1 types xscreensaver_t;
|
|
corentin.labbe |
31f9c1 |
|
|
corentin.labbe |
31f9c1 |
domtrans_pattern($2, xscreensaver_exec_t, xscreensaver_t)
|
|
corentin.labbe |
31f9c1 |
|
|
corentin.labbe |
31f9c1 |
# Allow the user domain to signal/ps.
|
|
corentin.labbe |
31f9c1 |
ps_process_pattern($2, xscreensaver_t)
|
|
corentin.labbe |
31f9c1 |
allow $2 xscreensaver_t:process signal_perms;
|
|
corentin.labbe |
31f9c1 |
')
|