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 5D8081580FD for ; Sun, 15 Dec 2024 00:30:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2D7FE09DF; Sun, 15 Dec 2024 00:30:20 +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 D965CE09D9 for ; Sun, 15 Dec 2024 00:30:19 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95EE3342FA1 for ; Sun, 15 Dec 2024 00:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F4180213D for ; Sun, 15 Dec 2024 00:30:15 +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: <1734221982.7cbfef87d904f8b3762ae98cf45e414254e297a1.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/lvm.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 7cbfef87d904f8b3762ae98cf45e414254e297a1 X-VCS-Branch: master Date: Sun, 15 Dec 2024 00:30:15 +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: 5b4f3ced-bb84-4009-a8b8-e779a9372826 X-Archives-Hash: d7c75c2c43d71df1af5c7f641c5abebf commit: 7cbfef87d904f8b3762ae98cf45e414254e297a1 Author: Rahul Sandhu sandhuservices dev> AuthorDate: Thu Nov 28 17:41:24 2024 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Dec 15 00:19:42 2024 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=7cbfef87 lvm_manage_runtime_dirs: new interface for managing LVM runtime dirs Signed-off-by: Rahul Sandhu sandhuservices.dev> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/lvm.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/system/lvm.if b/policy/modules/system/lvm.if index 9608a1fd1..a80a1b532 100644 --- a/policy/modules/system/lvm.if +++ b/policy/modules/system/lvm.if @@ -210,6 +210,25 @@ interface(`lvm_manage_runtime_files',` manage_files_pattern($1, lvm_runtime_t, lvm_runtime_t) ') +######################################## +## +## Manage LVM runtime dirs. +## +## +## +## Domain allowed access. +## +## +## +# +interface(`lvm_manage_runtime_dirs',` + gen_require(` + type lvm_runtime_t; + ') + + manage_dirs_pattern($1, lvm_runtime_t, lvm_runtime_t) +') + ###################################### ## ## All of the rules required to