Chris PeBenito fbc0a2
## <summary>Games</summary>
Chris PeBenito fbc0a2
Chris PeBenito 296273
############################################################
Chris PeBenito fbc0a2
## <summary>
Chris PeBenito 296273
##	Role access for games
Chris PeBenito fbc0a2
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito fbc0a2
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito fbc0a2
##	</summary>
Chris PeBenito fbc0a2
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito fbc0a2
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito fbc0a2
##	</summary>
Chris PeBenito fbc0a2
## </param>
Chris PeBenito fbc0a2
#
Chris PeBenito 296273
interface(`games_role',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 296273
		type games_t, games_exec_t;
Chris PeBenito fbc0a2
	')
Chris PeBenito fbc0a2
Chris PeBenito 296273
	role $1 types games_t;
Chris PeBenito fbc0a2
Chris PeBenito 296273
	domtrans_pattern($2, games_exec_t, games_t)
Chris PeBenito 296273
	allow $2 games_t:unix_stream_socket connectto;
Chris PeBenito 296273
	allow games_t $2:unix_stream_socket connectto;
Chris PeBenito fbc0a2
Chris PeBenito 296273
	# Allow the user domain to signal/ps.
Chris PeBenito 296273
	ps_process_pattern($2, games_t)
Chris PeBenito 296273
	allow $2 games_t:process signal_perms;
Chris PeBenito fbc0a2
')