summaryrefslogtreecommitdiff
path: root/src/fs/seclabelfs.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/seclabelfs.cil')
-rw-r--r--src/fs/seclabelfs.cil37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/fs/seclabelfs.cil b/src/fs/seclabelfs.cil
new file mode 100644
index 0000000..eb31584
--- /dev/null
+++ b/src/fs/seclabelfs.cil
@@ -0,0 +1,37 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(block seclabelfs
+
+ (macro type ((type ARG1))
+ (typeattributeset typeattr ARG1))
+
+ (typeattribute typeattr)
+
+ (blockinherit .fs.all_macro_template_fs)
+
+ (blockinherit .file.all_macro_template_all_files)
+ (blockinherit .file.all_macro_template_blk_files)
+ (blockinherit .file.all_macro_template_chr_files)
+ (blockinherit .file.all_macro_template_dirs)
+ (blockinherit .file.all_macro_template_fifo_files)
+ (blockinherit .file.all_macro_template_files)
+ (blockinherit .file.all_macro_template_lnk_files)
+ (blockinherit .file.all_macro_template_sock_files)
+
+ (call .fs.type (typeattr))
+
+ (block base_template
+
+ (blockabstract base_template)
+
+ (blockinherit .fs.base_template)
+
+ (call .seclabelfs.type (fs)))
+
+ (block template
+
+ (blockabstract template)
+
+ (blockinherit .fs.macro_template_fs)
+ (blockinherit .seclabelfs.base_template)))