aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Coker <russell@coker.com.au>2023-09-22 00:22:36 +1000
committerKenton Groombridge <concord@gentoo.org>2023-10-06 11:27:06 -0400
commit345902025b3c03467a48c8b1474cbd3b3bc085cf (patch)
tree8f1efde2ee1784251ff8befe09a49c83042b0ab6 /policy/modules/kernel/filesystem.if
parentdebian motd.d directory (#689) (diff)
downloadhardened-refpolicy-345902025b3c03467a48c8b1474cbd3b3bc085cf.tar.gz
hardened-refpolicy-345902025b3c03467a48c8b1474cbd3b3bc085cf.tar.bz2
hardened-refpolicy-345902025b3c03467a48c8b1474cbd3b3bc085cf.zip
policy for the Reliability Availability servicability daemon (#690)
* policy for the Reliability Availability servicability daemon Signed-off-by: Russell Coker <russell@coker.com.au> Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'policy/modules/kernel/filesystem.if')
-rw-r--r--policy/modules/kernel/filesystem.if37
1 files changed, 37 insertions, 0 deletions
diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if
index 5cdbc564..5213df5b 100644
--- a/policy/modules/kernel/filesystem.if
+++ b/policy/modules/kernel/filesystem.if
@@ -6156,6 +6156,43 @@ interface(`fs_getattr_tracefs_files',`
########################################
## <summary>
+## Read/write trace filesystem files
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`fs_rw_tracefs_files',`
+ gen_require(`
+ type tracefs_t;
+ ')
+
+ allow $1 tracefs_t:dir list_dir_perms;
+ allow $1 tracefs_t:file rw_file_perms;
+')
+
+########################################
+## <summary>
+## create trace filesystem directories
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`fs_create_tracefs_dirs',`
+ gen_require(`
+ type tracefs_t;
+ ')
+
+ allow $1 tracefs_t:dir { create rw_dir_perms };
+')
+
+########################################
+## <summary>
## Mount a XENFS filesystem.
## </summary>
## <param name="domain">