diff --git a/refpolicy/policy/modules/system/files.fc b/refpolicy/policy/modules/system/files.fc index 12386a8..743395b 100644 --- a/refpolicy/policy/modules/system/files.fc +++ b/refpolicy/policy/modules/system/files.fc @@ -49,6 +49,11 @@ ifdef(`distro_gentoo', ` /etc/env\.d/.* -- context_template(system_u:object_r:etc_runtime_t,s0) ') +# HOME_ROOT expands to all valid home directory prefixes found in /etc/passwd +HOME_ROOT -d context_template(system_u:object_r:home_root_t,s0) +HOME_ROOT/\.journal <> +HOME_ROOT/lost\+found(/.*)? context_template(system_u:object_r:lost_found_t,s0) + # # /initrd #