aboutsummaryrefslogtreecommitdiff
blob: 4f9dc90f795593f4dee67623cfd16cbdd1c12a4c (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
31
## <summary>IRC client policy</summary>

########################################
## <summary>
##	Role access for IRC
## </summary>
## <param name="role">
##	<summary>
##	Role allowed access
##	</summary>
## </param>
## <param name="domain">
##	<summary>
##	User domain for the role
##	</summary>
## </param>
#
interface(`irc_role',`
	gen_require(`
		type irc_t, irc_exec_t;
	')

	role $1 types irc_t;

	# Transition from the user domain to the derived domain.
	domtrans_pattern($2, irc_exec_t, irc_t)

	# allow ps to show irc
	ps_process_pattern($2, irc_t)
	allow $2 irc_t:process signal;
')