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:
parent
d76969703d
commit
602e1f71c6
|
@ -94,6 +94,10 @@ ifdef(`enable_mls',`
|
||||||
init_ranged_daemon_domain(syslogd_t, syslogd_exec_t, mls_systemhigh)
|
init_ranged_daemon_domain(syslogd_t, syslogd_exec_t, mls_systemhigh)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
optional_policy(`
|
||||||
|
systemd_tmpfilesd_managed(var_log_t)
|
||||||
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
# Auditctl local policy
|
# Auditctl local policy
|
||||||
|
|
|
@ -1629,8 +1629,6 @@ init_relabel_utmp(systemd_tmpfiles_t)
|
||||||
init_relabel_var_lib_dirs(systemd_tmpfiles_t)
|
init_relabel_var_lib_dirs(systemd_tmpfiles_t)
|
||||||
init_read_runtime_files(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_generic_log_dirs(systemd_tmpfiles_t)
|
||||||
logging_relabel_syslogd_tmp_files(systemd_tmpfiles_t)
|
logging_relabel_syslogd_tmp_files(systemd_tmpfiles_t)
|
||||||
logging_relabel_syslogd_tmp_dirs(systemd_tmpfiles_t)
|
logging_relabel_syslogd_tmp_dirs(systemd_tmpfiles_t)
|
||||||
|
|
Loading…
Reference in New Issue