From: sven.vermeulen@siphos.be (Sven Vermeulen) Date: Sat, 11 Aug 2012 20:59:51 +0200 Subject: [refpolicy] [PATCH v1 3/6] Fix typo in interface postfix_exec_postqueue In-Reply-To: <1344711594-11687-1-git-send-email-sven.vermeulen@siphos.be> References: <1344711594-11687-1-git-send-email-sven.vermeulen@siphos.be> Message-ID: <1344711594-11687-4-git-send-email-sven.vermeulen@siphos.be> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com To allow domains to execute the postqueue command, they should use postfix_exec_postqueue, not posftix_exec_postqueue. Signed-off-by: Sven Vermeulen --- nagios.te | 2 +- postfix.if | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/nagios.te b/nagios.te index c3e2a2d..b8127bc 100644 --- a/nagios.te +++ b/nagios.te @@ -300,7 +300,7 @@ optional_policy(` optional_policy(` postfix_stream_connect_master(nagios_mail_plugin_t) - posftix_exec_postqueue(nagios_mail_plugin_t) + postfix_exec_postqueue(nagios_mail_plugin_t) ') ###################################### diff --git a/postfix.if b/postfix.if index 9f7355b..6b76985 100644 --- a/postfix.if +++ b/postfix.if @@ -455,7 +455,8 @@ interface(`postfix_domtrans_postqueue',` ####################################### ## -## Execute the master postqueue in the caller domain. +## Execute the master postqueue in the caller domain. (Deprecated) +## Please use postfix_exec_postqueue instead ## ## ## @@ -464,6 +465,21 @@ interface(`postfix_domtrans_postqueue',` ## # interface(`posftix_exec_postqueue',` + refpolicywarn(`$0($*) has been deprecated.') + postfix_exec_postqueue($1) +') + +####################################### +## +## Execute the master postqueue in the caller domain. +## +## +## +## Domain allowed access. +## +## +# +interface(`postfix_exec_postqueue',` gen_require(` type postfix_postqueue_exec_t; ') -- 1.7.8.6