aboutsummaryrefslogtreecommitdiff
blob: 1067bd1f56fbbab8b5b2d729735962c01d17e365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## <summary>X Screensaver</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 the user domain to signal/ps.
	ps_process_pattern($2, xscreensaver_t)
	allow $2 xscreensaver_t:process signal_perms;
')