From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 18E2A1396D9 for ; Sun, 29 Oct 2017 20:43:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F00712BC141; Sun, 29 Oct 2017 20:43:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D00FF2BC141 for ; Sun, 29 Oct 2017 20:43:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A3583416D2 for ; Sun, 29 Oct 2017 20:43:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5602A908D for ; Sun, 29 Oct 2017 20:42:58 +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: <1509285448.c988737ef7f93819a734d799b1b36e4eb5e3f0ee.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.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c988737ef7f93819a734d799b1b36e4eb5e3f0ee X-VCS-Branch: master Date: Sun, 29 Oct 2017 20:42:58 +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: 91e9b4ee-c9b0-444e-bf76-11a7ec2251db X-Archives-Hash: 57324444ee356578831c3bbf0cda72ab commit: c988737ef7f93819a734d799b1b36e4eb5e3f0ee Author: Amadeusz Sławiński asmblr net> AuthorDate: Tue Oct 17 21:25:45 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Oct 29 13:57:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c988737e allow dac_read_search along with dac_override newer kernels check dac_read_search first and then for more permissions which are allowed by dac_override Signed-off-by: Amadeusz Sławiński asmblr.net> policy/modules/contrib/portage.if | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/contrib/portage.if b/policy/modules/contrib/portage.if index 637b0d0d..a81a4d0d 100644 --- a/policy/modules/contrib/portage.if +++ b/policy/modules/contrib/portage.if @@ -72,7 +72,7 @@ interface(`portage_compile_domain',` type portage_tmp_t, portage_tmpfs_t; ') - allow $1 self:capability { chown dac_override fowner fsetid mknod net_raw setgid setuid }; + allow $1 self:capability { chown dac_override dac_read_search fowner fsetid mknod net_raw setgid setuid }; dontaudit $1 self:capability sys_chroot; allow $1 self:process { transition signal_perms getsched setsched getsession getpgid setpgid getcap setcap share getattr setfscreate noatsecure siginh setrlimit rlimitinh dyntransition execmem setkeycreate setsockcreate getrlimit }; allow $1 self:fd use;