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 3A187138334 for ; Tue, 11 Sep 2018 09:06:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2156FE0DBF; Tue, 11 Sep 2018 09:06:49 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 E7C98E0DBB for ; Tue, 11 Sep 2018 09:06:48 +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 4FCFD335D4D for ; Tue, 11 Sep 2018 09:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CAB03D4 for ; Tue, 11 Sep 2018 09:06:44 +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: <1536462466.9af310973e98ba11a5d0efde091cd68753a7b734.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/support/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/support/misc_patterns.spt X-VCS-Directories: policy/support/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 9af310973e98ba11a5d0efde091cd68753a7b734 X-VCS-Branch: master Date: Tue, 11 Sep 2018 09:06:44 +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: 2c707cd4-ff21-4a7a-a88f-897b3d329da3 X-Archives-Hash: 59f9794aca9704a0142663baa7ec926a commit: 9af310973e98ba11a5d0efde091cd68753a7b734 Author: Lukas Vrabec redhat com> AuthorDate: Thu Jul 19 22:17:27 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Sep 9 03:07:46 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9af31097 Improve domain_transition_pattern to allow mmap entrypoint bin file. In domain_transition_pattern there is rule: allow $1 $2:file { getattr open read execute }; map permission is missing here, which is generating lot of AVC. Replacing permissions with mmap_exec_file_perms set. policy/support/misc_patterns.spt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/support/misc_patterns.spt b/policy/support/misc_patterns.spt index 26a86dda..2cfa0313 100644 --- a/policy/support/misc_patterns.spt +++ b/policy/support/misc_patterns.spt @@ -7,7 +7,7 @@ # 3. target domain # define(`domain_transition_pattern',` - allow $1 $2:file { getattr open read execute }; + allow $1 $2:file { mmap_exec_file_perms }; allow $1 $3:process transition; dontaudit $1 $3:process { noatsecure siginh rlimitinh }; ')