Chris PeBenito 545b0c
## <summary>Remote shell service.</summary>
Chris PeBenito 545b0c
Chris PeBenito 545b0c
########################################
Chris PeBenito 545b0c
## <summary>
Chris PeBenito 545b0c
##	Domain transition to rshd.
Chris PeBenito 545b0c
## </summary>
Chris PeBenito 545b0c
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 545b0c
##	The type of the process performing this action.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 545b0c
## </param>
Chris PeBenito 545b0c
#
Chris PeBenito 545b0c
interface(`rshd_domtrans',`
Chris PeBenito 545b0c
	gen_require(`
Chris PeBenito 545b0c
		type rshd_exec_t, rshd_t;
Chris PeBenito 545b0c
	')
Chris PeBenito 545b0c
Chris PeBenito 545b0c
	files_search_usr($1)
Chris PeBenito 545b0c
	corecmd_search_bin($1)
Chris PeBenito 545b0c
	domain_auto_trans($1,rshd_exec_t,rshd_t)
Chris PeBenito 545b0c
Chris PeBenito 545b0c
	allow $1 rshd_t:fd use;
Chris PeBenito 545b0c
	allow rshd_t $1:fd use;
Chris PeBenito 545b0c
	allow rshd_t $1:fifo_file rw_file_perms;
Chris PeBenito 545b0c
	allow rshd_t $1:process sigchld;
Chris PeBenito 545b0c
')