logging: Change to systemd interface for tmpfilesd.

Remove explicit rules for systemd-tmpfiles to manage var_log_t and replace
it with systemd_tmpfilesd_managed().

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
This commit is contained in:
Chris PeBenito 2022-03-14 16:12:04 +00:00 committed by Chris PeBenito
parent d76969703d
commit 602e1f71c6
2 changed files with 4 additions and 2 deletions

View File

@ -94,6 +94,10 @@ ifdef(`enable_mls',`
init_ranged_daemon_domain(syslogd_t, syslogd_exec_t, mls_systemhigh)
')
optional_policy(`
systemd_tmpfilesd_managed(var_log_t)
')
########################################
#
# Auditctl local policy

View File

@ -1629,8 +1629,6 @@ init_relabel_utmp(systemd_tmpfiles_t)
init_relabel_var_lib_dirs(systemd_tmpfiles_t)
init_read_runtime_files(systemd_tmpfiles_t)
logging_manage_generic_logs(systemd_tmpfiles_t)
logging_manage_generic_log_dirs(systemd_tmpfiles_t)
logging_relabel_generic_log_dirs(systemd_tmpfiles_t)
logging_relabel_syslogd_tmp_files(systemd_tmpfiles_t)
logging_relabel_syslogd_tmp_dirs(systemd_tmpfiles_t)