]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: don't recursively descend into journal directories in /var 539/head
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2015 21:43:55 +0000 (18:43 -0300)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2015 21:46:01 +0000 (18:46 -0300)
Do so only in /run. We shouldn't alter ACLs for existing files in /var,
but only for new files. If the admin made changes to the ACLs they
shouls stay in place.

We should still do recursive ACL changes for files in /run, since those
are not persistent, and will hence lack ACLs on every boot.

Also, /var/log/journal might be quit large, /run/log/journal is usually
not, hence we should avoid the recursive descending on /var, but not on
/run.

Fixes #534

tmpfiles.d/systemd.conf.m4

index b447b01f586fa5f24d7748f85fa825db974a190d..d9d51af9292b373ba8bf821dd599138b5bbe3b6d 100644 (file)
@@ -35,7 +35,7 @@ z /var/log/journal 2755 root systemd-journal - -
 z /var/log/journal/%m 2755 root systemd-journal - -
 m4_ifdef(`HAVE_ACL',``
 a+ /var/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
-A+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
+a+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
 '')m4_dnl
 
 d /var/lib/systemd 0755 root root -