summaryrefslogtreecommitdiff
path: root/src/fs/noseclabelfs/autonoseclabelfs.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/noseclabelfs/autonoseclabelfs.cil')
-rw-r--r--src/fs/noseclabelfs/autonoseclabelfs.cil14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/noseclabelfs/autonoseclabelfs.cil b/src/fs/noseclabelfs/autonoseclabelfs.cil
new file mode 100644
index 0000000..6a0d922
--- /dev/null
+++ b/src/fs/noseclabelfs/autonoseclabelfs.cil
@@ -0,0 +1,14 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(block auto
+
+ (genfscon "autofs" "/" fs_context)
+ (genfscon "automount" "/" fs_context)
+
+ (macro getattr_fs_dirs ((type ARG1))
+ (allow ARG1 fs (dir (getattr))))
+
+ (blockinherit .fs.macro_template_dirs)
+ (blockinherit .fs.macro_template_fs)
+ (blockinherit .noseclabelfs.base_template))