commit:     04720823ab3408327def53ef33eb0e9ae07b0918
Author:     Kenton Groombridge <me <AT> concord <DOT> sh>
AuthorDate: Sun Nov  7 01:06:27 2021 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Thu Nov 11 21:26:50 2021 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=04720823

dovecot, spamassassin: allow dovecot to execute spamc

Allow dovecot to execute spamc in order to learn spam and ham when a
user manipulates spam mails in their mailbox.

Signed-off-by: Kenton Groombridge <me <AT> concord.sh>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 policy/modules/services/dovecot.te | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/policy/modules/services/dovecot.te 
b/policy/modules/services/dovecot.te
index 04922bec..e6ca365a 100644
--- a/policy/modules/services/dovecot.te
+++ b/policy/modules/services/dovecot.te
@@ -226,6 +226,12 @@ optional_policy(`
        sendmail_domtrans(dovecot_t)
 ')
 
+optional_policy(`
+       # execute the spamassassin or other spamd clients
+       # to learn spam and ham
+       spamassassin_exec_client(dovecot_t)
+')
+
 optional_policy(`
        seutil_sigchld_newrole(dovecot_t)
 ')

Reply via email to