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 6A7B1138CCE for ; Sat, 16 May 2015 11:32:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6F04E0903; Sat, 16 May 2015 11:32:32 +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 69D5EE0903 for ; Sat, 16 May 2015 11:32:32 +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 BDF70340DAF for ; Sat, 16 May 2015 11:32:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BFEB9AA for ; Sat, 16 May 2015 11:32:29 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1431696109.4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:adminroles 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: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6 X-VCS-Branch: adminroles Date: Sat, 16 May 2015 11:32:29 +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: a927649d-f3b2-484b-8330-d6cc7a7ade32 X-Archives-Hash: a4f82f049c5cee4d9f0c38691a8987dd commit: 4181d381fa9d12a6c7836c6acbc06ccc8b26e6b6 Author: Sven Vermeulen siphos be> AuthorDate: Fri May 15 13:21:49 2015 +0000 Commit: Jason Zaman 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)