diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc index 5223af277..c3496c218 100644 --- a/policy/modules/kernel/files.fc +++ b/policy/modules/kernel/files.fc @@ -270,8 +270,3 @@ ifndef(`distro_redhat',` /var/tmp/systemd-private-[^/]+/tmp -d gen_context(system_u:object_r:tmp_t,s0-mls_systemhigh) /var/tmp/systemd-private-[^/]+/tmp/.* <> /var/tmp/vi\.recover -d gen_context(system_u:object_r:tmp_t,s0) - -ifdef(`distro_debian',` -/run/motd -- gen_context(system_u:object_r:initrc_var_run_t,s0) -/run/motd\.dynamic -- gen_context(system_u:object_r:initrc_var_run_t,s0) -') diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc index 548a8631c..71d2ef21a 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc @@ -68,6 +68,8 @@ ifdef(`distro_redhat',` ifdef(`distro_debian',` /run/hotkey-setup -- gen_context(system_u:object_r:initrc_var_run_t,s0) /run/kdm/.* -- gen_context(system_u:object_r:initrc_var_run_t,s0) +/run/motd -- gen_context(system_u:object_r:initrc_var_run_t,s0) +/run/motd\.dynamic -- gen_context(system_u:object_r:initrc_var_run_t,s0) /etc/network/if-pre-up\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) /etc/network/if-up\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0) /etc/network/if-down\.d/.* -- gen_context(system_u:object_r:initrc_exec_t,s0)