commit: 4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Fri May 15 13:21:49 2015 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Fri May 15 13:21:49 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4181d381
Remove catch-all for postfix libraries The postfix libraries in /usr/lib/postfix were by default marked as postfix_exec_t. This however is a design mistake. Libraries should be of a library type (of which lib_t is a default) so that applications that use it have the proper read/execute rights without needing those on the *real* executable types of an application. policy/modules/contrib/postfix.fc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/postfix.fc b/policy/modules/contrib/postfix.fc index da1791b..b71d844 100644 --- a/policy/modules/contrib/postfix.fc +++ b/policy/modules/contrib/postfix.fc @@ -4,7 +4,8 @@ /etc/rc\.d/init\.d/postfix -- gen_context(system_u:object_r:postfix_initrc_exec_t,s0) -/usr/lib/postfix/.* -- gen_context(system_u:object_r:postfix_exec_t,s0) +# Remove catch-all so that .so files remain lib_t +#/usr/lib/postfix/.* -- gen_context(system_u:object_r:postfix_exec_t,s0) /usr/lib/postfix/cleanup -- gen_context(system_u:object_r:postfix_cleanup_exec_t,s0) /usr/lib/postfix/local -- gen_context(system_u:object_r:postfix_local_exec_t,s0) /usr/lib/postfix/master -- gen_context(system_u:object_r:postfix_master_exec_t,s0)