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 00AB81382C5 for ; Mon, 1 Feb 2021 02:10:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96D8FE09AB; Mon, 1 Feb 2021 02:10:11 +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 7CE14E09AB for ; Mon, 1 Feb 2021 02:10:11 +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 13C27340EFD for ; Mon, 1 Feb 2021 02:10:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 658144A1 for ; Mon, 1 Feb 2021 02:10:08 +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: <1612142502.2a706fe10f808aac846cef19c5362a22a6e5253c.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/support/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/support/file_patterns.spt X-VCS-Directories: policy/support/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 2a706fe10f808aac846cef19c5362a22a6e5253c X-VCS-Branch: master Date: Mon, 1 Feb 2021 02:10:08 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 56e7de57-f272-440f-8b10-ba0e0b886128 X-Archives-Hash: f2a529650e0643b1ba9f7d2dfa1801e1 commit: 2a706fe10f808aac846cef19c5362a22a6e5253c Author: Chris PeBenito ieee org> AuthorDate: Thu Jan 28 15:51:39 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 1 01:21:42 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=2a706fe1 file_patterns.spt: Add a mmap_manage_files_pattern(). Signed-off-by: Chris PeBenito ieee.org> Signed-off-by: Jason Zaman gentoo.org> policy/support/file_patterns.spt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/support/file_patterns.spt b/policy/support/file_patterns.spt index 6ce53fa9..19fcf275 100644 --- a/policy/support/file_patterns.spt +++ b/policy/support/file_patterns.spt @@ -154,6 +154,11 @@ define(`manage_files_pattern',` allow $1 $3:file manage_file_perms; ') +define(`mmap_manage_files_pattern',` + allow $1 $2:dir rw_dir_perms; + allow $1 $3:file { manage_file_perms map }; +') + define(`relabelfrom_files_pattern',` allow $1 $2:dir search_dir_perms; allow $1 $3:file relabelfrom_file_perms;