summaryrefslogtreecommitdiff
path: root/src/sys/procfile/sysctlfile/devsysctlfile.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/procfile/sysctlfile/devsysctlfile.cil')
-rw-r--r--src/sys/procfile/sysctlfile/devsysctlfile.cil38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/sys/procfile/sysctlfile/devsysctlfile.cil b/src/sys/procfile/sysctlfile/devsysctlfile.cil
new file mode 100644
index 0000000..87edae1
--- /dev/null
+++ b/src/sys/procfile/sysctlfile/devsysctlfile.cil
@@ -0,0 +1,38 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(in dev
+
+ (genfscon "proc" "/sys/dev" sysctlfile_context)
+
+ (blockinherit .sysctlfile.dev.template)
+ (blockinherit .sysctlfile.macro_template_dirs))
+
+(in sysctlfile
+
+ (block dev
+
+ (macro type ((type ARG1))
+ (typeattributeset typeattr ARG1))
+
+ (typeattribute typeattr)
+
+ (blockinherit .file.all_macro_template_dirs)
+ (blockinherit .file.all_macro_template_files)
+
+ (call .sysctlfile.type (typeattr))
+
+ (block base_template
+
+ (blockabstract base_template)
+
+ (blockinherit .sysctlfile.base_template)
+
+ (call .sysctlfile.dev.type (sysctlfile)))
+
+ (block template
+
+ (blockabstract template)
+
+ (blockinherit .sysctlfile.dev.base_template)
+ (blockinherit .sysctlfile.macro_template_files))))