Chris PeBenito 12cd9a
## <summary>Portslave terminal server software</summary>
Chris PeBenito 12cd9a
Chris PeBenito 12cd9a
########################################
Chris PeBenito 12cd9a
## <summary>
Chris PeBenito 12cd9a
##	Execute portslave with a domain transition.
Chris PeBenito 12cd9a
## </summary>
Chris PeBenito 12cd9a
## <param name="domain">
Chris PeBenito 12cd9a
##	<summary>
Chris PeBenito 12cd9a
##	Domain allowed to transition.
Chris PeBenito 12cd9a
##	</summary>
Chris PeBenito 12cd9a
## </param>
Chris PeBenito 12cd9a
#
Chris PeBenito 12cd9a
interface(`portslave_domtrans',`
Chris PeBenito 12cd9a
	gen_require(`
Chris PeBenito 12cd9a
		type portslave_t, portslave_exec_t;
Chris PeBenito 12cd9a
	')
Chris PeBenito 12cd9a
Chris PeBenito 12cd9a
	domain_auto_trans($1,portslave_exec_t,portslave_t)
Chris PeBenito 12cd9a
Chris PeBenito 12cd9a
	allow $1 portslave_t:fd use;
Chris PeBenito 12cd9a
	allow portslave_t $1:fd use;
Chris PeBenito 12cd9a
	allow portslave_t $1:fifo_file rw_file_perms;
Chris PeBenito 12cd9a
	allow portslave_t $1:process sigchld;
Chris PeBenito 12cd9a
')