summaryrefslogtreecommitdiff
path: root/src/file/varfile/statefile.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/varfile/statefile.cil')
-rw-r--r--src/file/varfile/statefile.cil42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/file/varfile/statefile.cil b/src/file/varfile/statefile.cil
new file mode 100644
index 0000000..bb74d43
--- /dev/null
+++ b/src/file/varfile/statefile.cil
@@ -0,0 +1,42 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(block state
+
+ (blockinherit .file.state.template))
+
+(in file
+
+ (block state
+
+ (macro type ((type ARG1))
+ (typeattributeset typeattr ARG1))
+
+ (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)
+
+ (typeattribute typeattr)
+
+ (call var.type (typeattr))
+
+ (block base_template
+
+ (blockabstract base_template)
+
+ (blockinherit .file.var.base_template)
+
+ (call .file.state.type (file)))
+
+ (block template
+
+ (blockabstract template)
+
+ (blockinherit .file.macro_template_dirs)
+ (blockinherit .file.macro_template_fifo_files)
+ (blockinherit .file.macro_template_files)
+ (blockinherit .file.macro_template_lnk_files)
+ (blockinherit .file.macro_template_sock_files)
+ (blockinherit .file.state.base_template))))