Chris PeBenito 02b584
## <summary>Policy for sendmail.</summary>
Chris PeBenito 02b584
Chris PeBenito 02b584
########################################
Chris PeBenito 414e41
## <desc>
Chris PeBenito 414e41
##	Domain transition to sendmail.
Chris PeBenito 414e41
## </desc>
Chris PeBenito 414e41
## <param name="domain">
Chris PeBenito 414e41
##	The type of the process performing this action.
Chris PeBenito 414e41
## </param>
Chris PeBenito 02b584
#
Chris PeBenito 199895
interface(`sendmail_domtrans',`
Chris PeBenito 5e6f9e
	gen_require(`
Chris PeBenito 5e6f9e
		type sendmail_exec_t, sendmail_t;
Chris PeBenito 5e6f9e
		class process sigchld;
Chris PeBenito 5e6f9e
		class fd use;
Chris PeBenito 5e6f9e
		class fifo_file rw_file_perms;
Chris PeBenito 5e6f9e
	')
Chris PeBenito 02b584
Chris PeBenito 5e6f9e
	files_search_usr($1)
Chris PeBenito 5e6f9e
	corecmd_search_sbin($1)
Chris PeBenito 02b584
	domain_auto_trans($1,sendmail_exec_t,sendmail_t)
Chris PeBenito 02b584
Chris PeBenito 02b584
	allow $1 sendmail_t:fd use;
Chris PeBenito 02b584
	allow sendmail_t $1:fd use;
Chris PeBenito 02b584
	allow sendmail_t $1:fifo_file rw_file_perms;
Chris PeBenito 02b584
	allow sendmail_t $1:process sigchld;
Chris PeBenito 02b584
')
Chris PeBenito 02b584