From cef527a3a1a3ee05100d9b2a3794f3ac3b1929e1 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 23 Aug 2025 20:12:42 -0400 Subject: move "debug" out of misc.cil --- src/misc.cil | 5 ----- src/sys/procfile/sysctlfile/debugsysctlfile.cil | 6 ++++-- 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 -- cgit v1.2.3