Blame refpolicy/policy/modules/services/sendmail.if
|
Chris PeBenito |
02b584 |
## <module name="sendmail" layer="services">
|
|
Chris PeBenito |
02b584 |
## <summary>Policy for sendmail.</summary>
|
|
Chris PeBenito |
02b584 |
|
|
Chris PeBenito |
02b584 |
########################################
|
|
Chris PeBenito |
02b584 |
## <interface name="sendmail_domtrans">
|
|
Chris PeBenito |
02b584 |
## <description>
|
|
Chris PeBenito |
02b584 |
## Domain transition to sendmail.
|
|
Chris PeBenito |
02b584 |
## </description>
|
|
Chris PeBenito |
02b584 |
## <parameter name="domain">
|
|
Chris PeBenito |
02b584 |
## The type of the process performing this action.
|
|
Chris PeBenito |
02b584 |
## </parameter>
|
|
Chris PeBenito |
02b584 |
## </interface>
|
|
Chris PeBenito |
02b584 |
#
|
|
Chris PeBenito |
02b584 |
define(`sendmail_domtrans',`
|
|
Chris PeBenito |
fa7bea |
gen_require(`$0'_depend)
|
|
Chris PeBenito |
02b584 |
|
|
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 |
|
|
Chris PeBenito |
02b584 |
define(`sendmail_domtrans_depend',`
|
|
Chris PeBenito |
02b584 |
type sendmail_exec_t, sendmail_t;
|
|
Chris PeBenito |
02b584 |
|
|
Chris PeBenito |
02b584 |
class process sigchld;
|
|
Chris PeBenito |
02b584 |
class fd use;
|
|
Chris PeBenito |
02b584 |
class fifo_file rw_file_perms;
|
|
Chris PeBenito |
02b584 |
')
|
|
Chris PeBenito |
02b584 |
|
|
Chris PeBenito |
02b584 |
## </module>
|