fix up sendmail for targeted

This commit is contained in:
Chris PeBenito 2005-10-28 18:57:23 +00:00
parent 9cb7c2a869
commit dc8f17037b
1 changed files with 11 additions and 5 deletions

View File

@ -6,11 +6,6 @@ policy_module(sendmail,1.0)
# Declarations
#
type sendmail_t;
mta_sendmail_mailserver(sendmail_t)
mta_mailserver_delivery(sendmail_t)
mta_mailserver_sender(sendmail_t)
type sendmail_log_t;
logging_log_file(sendmail_log_t)
@ -20,6 +15,17 @@ files_tmp_file(sendmail_tmp_t)
type sendmail_var_run_t;
files_pid_file(sendmail_var_run_t)
ifdef(`targeted_policy',`
unconfined_alias_domain(sendmail_t)
type sendmail_exec_t;
domain_entry_file(sendmail_t,sendmail_exec_t)
',`
type sendmail_t;
mta_sendmail_mailserver(sendmail_t)
mta_mailserver_delivery(sendmail_t)
mta_mailserver_sender(sendmail_t)
')
########################################
#
# Sendmail local policy