Chris PeBenito 02b584
## <summary>Policy for sendmail.</summary>
Chris PeBenito 02b584
Chris PeBenito 02b584
########################################
Chris PeBenito f7ebea
## <summary>
Chris PeBenito 12ae75
##	Sendmail stub interface.  No access allowed.
Chris PeBenito 12ae75
## </summary>
Chris PeBenito 12ae75
## <param name="domain" optional="true">
Chris PeBenito 12ae75
##	N/A
Chris PeBenito 12ae75
## </param>
Chris PeBenito 12ae75
#
Chris PeBenito 12ae75
interface(`sendmail_stub',`
Chris PeBenito 12ae75
	gen_require(`
Chris PeBenito 12ae75
		type sendmail_t;
Chris PeBenito 12ae75
	')
Chris PeBenito 12ae75
')
Chris PeBenito 12ae75
Chris PeBenito 12ae75
########################################
Chris PeBenito 12ae75
## <summary>
Chris PeBenito 414e41
##	Domain transition to sendmail.
Chris PeBenito f7ebea
## </summary>
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