summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg KH <gregkh@linuxfoundation.org>2014-04-15 14:12:01 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-17 23:58:12 -0400
commita606871da508995f5ede113a8fc6538afd98966c (patch)
treeca1f1d410d451ec24ecbecbfe5095f770a678a9e
parent1dd5aa56d1cdf64397fba03b1d2ad63aaf281fe4 (diff)
tmpfiles: fix permissions on new journal files
When starting up journald on a new system, set the proper permissions on the system.journal files, not only on the journal directory.
-rw-r--r--tmpfiles.d/systemd.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmpfiles.d/systemd.conf b/tmpfiles.d/systemd.conf
index 7c6d6b9099..c470045321 100644
--- a/tmpfiles.d/systemd.conf
+++ b/tmpfiles.d/systemd.conf
@@ -23,6 +23,6 @@ d /run/systemd/machines 0755 root root -
d /run/systemd/shutdown 0755 root root -
m /var/log/journal 2755 root systemd-journal - -
-m /var/log/journal/%m 2755 root systemd-journal - -
+Z /var/log/journal/%m 2755 root systemd-journal - -
m /run/log/journal 2755 root systemd-journal - -
-m /run/log/journal/%m 2755 root systemd-journal - -
+Z /run/log/journal/%m 2755 root systemd-journal - -