From dc8f17037bdd21956b5643e561cd864d1172921d Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Oct 28 2005 18:57:23 +0000 Subject: fix up sendmail for targeted --- diff --git a/refpolicy/policy/modules/services/sendmail.te b/refpolicy/policy/modules/services/sendmail.te index c25dd75..9f4448b 100644 --- a/refpolicy/policy/modules/services/sendmail.te +++ b/refpolicy/policy/modules/services/sendmail.te @@ -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