diff options
-rw-r--r-- | src/file/homefile.cil | 8 | ||||
-rw-r--r-- | src/misc.cil | 9 |
2 files changed, 7 insertions, 10 deletions
diff --git a/src/file/homefile.cil b/src/file/homefile.cil index e112a4d..6a2cec0 100644 --- a/src/file/homefile.cil +++ b/src/file/homefile.cil @@ -2,11 +2,17 @@ ;; SPDX-License-Identifier: Unlicense (block home + (macro root_file_type_transition_file ((type ARG1)) + (call .root.file_type_transition + (ARG1 file dir "home"))) (blockinherit .file.home.template) (blockinherit .file.macro_template_all_files) (blockinherit .file.macro_template_blk_files) - (blockinherit .file.macro_template_chr_files)) + (blockinherit .file.macro_template_chr_files) + + (filecon "/home" dir file_context) + (filecon "/home/.*" any file_context)) (in file diff --git a/src/misc.cil b/src/misc.cil index 4c069ef..a543f57 100644 --- a/src/misc.cil +++ b/src/misc.cil @@ -3,15 +3,6 @@ (sidcontext init (sys.id sys.role sys.subj sys.lowlow)) ;; userspace_initial_context -(in home - - (filecon "/home" dir file_context) - (filecon "/home/.*" any file_context) - - (macro root_file_type_transition_file ((type ARG1)) - (call .root.file_type_transition - (ARG1 file dir "home")))) - (in hugetlb (filecon "/dev/hugepages" dir ()) |