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 7D3E3138D1C for ; Mon, 13 Jul 2015 21:45:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A4BFE07E8; Mon, 13 Jul 2015 21:45:41 +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 A21E8E07F2 for ; Mon, 13 Jul 2015 21:45:40 +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 78A943408FE for ; Mon, 13 Jul 2015 21:45:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1AE65753 for ; Mon, 13 Jul 2015 21:45:38 +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: <1436821190.8d39472678948b838904f31d1b3467b1fa427668.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/portage.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 8d39472678948b838904f31d1b3467b1fa427668 X-VCS-Branch: master Date: Mon, 13 Jul 2015 21:45:38 +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: 5c2cd404-c933-4c8a-88f9-0abc395a9dfb X-Archives-Hash: c7d9d96fd8629e3fc7bc2d220293a040 Message-ID: <20150713214538.K6sr1N9I2FcrGcIXUsOownweEjGSYveWXPY7HunsjnE@z> commit: 8d39472678948b838904f31d1b3467b1fa427668 Author: Jason Zaman perfinion com> AuthorDate: Mon Jul 13 19:47:28 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Jul 13 20:59:50 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=8d394726 Add portage_enable_test boolean for FEATURES=test policy/modules/contrib/portage.te | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te index 2e8ab9e..2f62eb6 100644 --- a/policy/modules/contrib/portage.te +++ b/policy/modules/contrib/portage.te @@ -375,6 +375,13 @@ ifdef(`distro_gentoo',` ## gen_tunable(portage_mount_fs, false) +## +##

+## Extra rules which are sometimes needed when FEATURES=test is enabled +##

+##
+gen_tunable(portage_enable_test, false) + ########################################## # @@ -388,7 +395,7 @@ gen_tunable(portage_mount_fs, false) attribute portage_eselect_domain; ########################################## - # + # # Portage fetch local policy # @@ -476,6 +483,13 @@ gen_tunable(portage_mount_fs, false) # install-xattr does listxattr() which throws a lot of this dontaudit portage_sandbox_t self:capability sys_admin; + tunable_policy(`portage_enable_test',` + # lots of tests connect over loopback + corenet_tcp_bind_generic_node(portage_sandbox_t) + corenet_tcp_bind_all_unreserved_ports(portage_sandbox_t) + corenet_tcp_connect_all_unreserved_ports(portage_sandbox_t) + ') + ########################################## # # Portage eselect module domain