From: "Sven Vermeulen" <swift@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:mailinfra commit in: policy/modules/contrib/
Date: Sun, 24 Aug 2014 08:02:52 +0000 (UTC) [thread overview]
Message-ID: <1408821348.a2d1f61b74fda94cd0553ba94174bace791cbeee.swift@gentoo> (raw)
commit: a2d1f61b74fda94cd0553ba94174bace791cbeee
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat Aug 23 19:15:48 2014 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 19:15:48 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=a2d1f61b
Introduce postfix_user_sendmail_privs
---
policy/modules/contrib/postfix.if | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/policy/modules/contrib/postfix.if b/policy/modules/contrib/postfix.if
index 8e7d1e7..2e1df2c 100644
--- a/policy/modules/contrib/postfix.if
+++ b/policy/modules/contrib/postfix.if
@@ -756,3 +756,33 @@ interface(`postfix_admin',`
can_exec($1, postfix_showq_exec_t)
')
')
+
+# ifdef distro_gentoo
+
+#########################################
+## <summary>
+## Assign privileges for Postfix sendmail
+## </summary>
+## <param name="domain:>
+## <summary>
+## Domain to assign privileges to
+## </summary>
+## </param>
+#
+interface(`postfix_user_sendmail_privs',`
+ allow $1 self:process { setrlimit };
+ allow $1 self:tcp_socket create_socket_perms;
+ allow $1 self:unix_dgram_socket create_socket_perms;
+
+ kernel_read_network_state($1)
+
+ logging_send_syslog_msg($1)
+
+ auth_use_nsswitch($1)
+
+ optional_policy(`
+ postfix_domtrans_postdrop($1)
+ postfix_read_config($1)
+ postfix_read_spool_files($1)
+ ')
+')
next reply other threads:[~2014-08-24 8:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-24 8:02 Sven Vermeulen [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-09-21 14:08 [gentoo-commits] proj/hardened-refpolicy:mailinfra commit in: policy/modules/contrib/ Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-09-21 14:08 Sven Vermeulen
2014-08-24 8:02 Sven Vermeulen
2014-08-24 8:02 Sven Vermeulen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408821348.a2d1f61b74fda94cd0553ba94174bace791cbeee.swift@gentoo \
--to=swift@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox