summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/misc.cil5
-rw-r--r--src/sys/procfile/sysctlfile/debugsysctlfile.cil6
2 files changed, 4 insertions, 7 deletions
diff --git a/src/misc.cil b/src/misc.cil
index 8192f7a..dd37e6f 100644
--- a/src/misc.cil
+++ b/src/misc.cil
@@ -3,11 +3,6 @@
(sidcontext init (sys.id sys.role sys.subj sys.lowlow)) ;; userspace_initial_context
-(in debug
-
- (filecon "/sys/kernel/debug" dir ())
- (filecon "/sys/kernel/debug/.*" any ()))
-
(in dev
(filecon "/dev" dir file_context)
diff --git a/src/sys/procfile/sysctlfile/debugsysctlfile.cil b/src/sys/procfile/sysctlfile/debugsysctlfile.cil
index 334dee8..870fe91 100644
--- a/src/sys/procfile/sysctlfile/debugsysctlfile.cil
+++ b/src/sys/procfile/sysctlfile/debugsysctlfile.cil
@@ -2,11 +2,13 @@
;; SPDX-License-Identifier: Unlicense
(block debug
+ (blockinherit .sysctlfile.debug.template)
+ (blockinherit .sysctlfile.macro_template_dirs)
(genfscon "proc" "/sys/debug" sysctlfile_context)
- (blockinherit .sysctlfile.debug.template)
- (blockinherit .sysctlfile.macro_template_dirs))
+ (filecon "/sys/kernel/debug" dir ())
+ (filecon "/sys/kernel/debug/.*" any ()))
(in sysctlfile