From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4712E138CCF for ; Fri, 15 May 2015 13:27:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AC57E0822; Fri, 15 May 2015 13:27:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 19BA7E0822 for ; Fri, 15 May 2015 13:27:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53175340E97 for ; Fri, 15 May 2015 13:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 713019D6 for ; Fri, 15 May 2015 13:27:32 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1431696109.4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/postfix.fc X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6 X-VCS-Branch: swift Date: Fri, 15 May 2015 13:27:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: cadbbf2b-03b1-4e11-985b-f19c9ebce8ab X-Archives-Hash: 9537a1916f103f081bd94e46e4292e44 Message-ID: <20150515132732.y-hKSuhaFgwUgRnb43Rx1B20dv6eC4USZdK6mt_cPCc@z> commit: 4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6 Author: Sven Vermeulen siphos be> AuthorDate: Fri May 15 13:21:49 2015 +0000 Commit: Sven Vermeulen gentoo 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)