Chris PeBenito 8cffa7
## <summary>IRC client policy</summary>
Chris PeBenito 8cffa7
Chris PeBenito 296273
########################################
Chris PeBenito 8cffa7
## <summary>
Chris PeBenito 296273
##	Role access for IRC
Chris PeBenito 8cffa7
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 8cffa7
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 8cffa7
## </param>
Chris PeBenito 8cffa7
#
Chris PeBenito 296273
interface(`irc_role',`
Chris PeBenito 8cffa7
	gen_require(`
Chris PeBenito 296273
		type irc_t, irc_exec_t;
Chris PeBenito 8cffa7
	')
Chris PeBenito 8cffa7
Chris PeBenito 296273
	role $1 types irc_t;
Chris PeBenito 8cffa7
Chris PeBenito 8cffa7
	# Transition from the user domain to the derived domain.
Chris PeBenito 296273
	domtrans_pattern($2, irc_exec_t, irc_t)
Chris PeBenito 8cffa7
Chris PeBenito 8cffa7
	# allow ps to show irc
Chris PeBenito 296273
	ps_process_pattern($2, irc_t)
Chris PeBenito 296273
	allow $2 irc_t:process signal;
Chris PeBenito 8cffa7
')