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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C38515812D for ; Mon, 06 Jan 2025 21:08:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 457EDE07A7; Mon, 06 Jan 2025 21:08:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF59DE07A7 for ; Mon, 06 Jan 2025 21:08:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E31B0340CBB for ; Mon, 06 Jan 2025 21:08:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48C401D4D for ; Mon, 06 Jan 2025 21:08:28 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1736197691.f12304725c84e011b55b3af81387a8b4c44fab13.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/files.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: f12304725c84e011b55b3af81387a8b4c44fab13 X-VCS-Branch: master Date: Mon, 06 Jan 2025 21:08:28 +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: 55079e77-c0f8-42ed-9614-5d67bd650d39 X-Archives-Hash: 067ef025458eca058d3dac677727e18e commit: f12304725c84e011b55b3af81387a8b4c44fab13 Author: Marc Schiffbauer gentoo org> AuthorDate: Wed Dec 4 22:30:30 2024 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Mon Jan 6 21:08:11 2025 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f1230472 kernel/files: add interface files_mmap_read_usr_files Signed-off-by: Marc Schiffbauer gentoo.org> Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/kernel/files.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index b9aaeba02..0d3a2b618 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -760,6 +760,24 @@ interface(`files_mmap_read_all_files',` ') ') +######################################## +## +## Read and memory map usr_t files. +## +## +## +## Domain allowed access. +## +## +# +interface(`files_mmap_read_usr_files',` + gen_require(` + type usr_t; + ') + + mmap_read_files_pattern($1, usr_t, usr_t) +') + ######################################## ## ## Allow shared library text relocations in all files.