923a60
From 2a1f91ffc371f2bc3767a806ff387517ff9b9fc8 Mon Sep 17 00:00:00 2001
923a60
From: Lennart Poettering <lennart@poettering.net>
923a60
Date: Thu, 9 Jul 2015 18:43:55 -0300
923a60
Subject: [PATCH] tmpfiles: don't recursively descend into journal directories
923a60
 in /var
923a60
923a60
Do so only in /run. We shouldn't alter ACLs for existing files in /var,
923a60
but only for new files. If the admin made changes to the ACLs they
923a60
shouls stay in place.
923a60
923a60
We should still do recursive ACL changes for files in /run, since those
923a60
are not persistent, and will hence lack ACLs on every boot.
923a60
923a60
Also, /var/log/journal might be quit large, /run/log/journal is usually
923a60
not, hence we should avoid the recursive descending on /var, but not on
923a60
/run.
923a60
923a60
Fixes #534
923a60
923a60
(cherry picked from commit 8b258a645ae63dff3ab8dde6520d2e770e2a40f1)
923a60
Related: #1411199
923a60
---
923a60
 tmpfiles.d/systemd.conf.m4 | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/tmpfiles.d/systemd.conf.m4 b/tmpfiles.d/systemd.conf.m4
923a60
index b447b01f58..d9d51af929 100644
923a60
--- a/tmpfiles.d/systemd.conf.m4
923a60
+++ b/tmpfiles.d/systemd.conf.m4
923a60
@@ -35,7 +35,7 @@ z /var/log/journal 2755 root systemd-journal - -
923a60
 z /var/log/journal/%m 2755 root systemd-journal - -
923a60
 m4_ifdef(`HAVE_ACL',``
923a60
 a+ /var/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
923a60
-A+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
923a60
+a+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
923a60
 '')m4_dnl
923a60
 
923a60
 d /var/lib/systemd 0755 root root -