commit: 7cbfef87d904f8b3762ae98cf45e414254e297a1
Author: Rahul Sandhu <rahul <AT> sandhuservices <DOT> dev>
AuthorDate: Thu Nov 28 17:41:24 2024 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> 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 <rahul <AT> sandhuservices.dev>
Signed-off-by: Jason Zaman <perfinion <AT> 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)
')
+########################################
+## <summary>
+## Manage LVM runtime dirs.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+## <rolecap/>
+#
+interface(`lvm_manage_runtime_dirs',`
+ gen_require(`
+ type lvm_runtime_t;
+ ')
+
+ manage_dirs_pattern($1, lvm_runtime_t, lvm_runtime_t)
+')
+
######################################
## <summary>
## All of the rules required to