mirror of
https://github.com/systemd/systemd.git
synced 2024-11-12 15:21:19 +03:00
8b258a645a
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
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# See tmpfiles.d(5) for details
|
|
|
|
d /run/user 0755 root root -
|
|
F! /run/utmp 0664 root utmp -
|
|
|
|
d /run/systemd/ask-password 0755 root root -
|
|
d /run/systemd/seats 0755 root root -
|
|
d /run/systemd/sessions 0755 root root -
|
|
d /run/systemd/users 0755 root root -
|
|
d /run/systemd/machines 0755 root root -
|
|
d /run/systemd/shutdown 0755 root root -
|
|
m4_ifdef(`ENABLE_NETWORKD',
|
|
d /run/systemd/netif 0755 systemd-network systemd-network -
|
|
d /run/systemd/netif/links 0755 systemd-network systemd-network -
|
|
d /run/systemd/netif/leases 0755 systemd-network systemd-network -
|
|
)m4_dnl
|
|
|
|
d /run/log 0755 root root -
|
|
|
|
z /run/log/journal 2755 root systemd-journal - -
|
|
Z /run/log/journal/%m ~2750 root systemd-journal - -
|
|
m4_ifdef(`HAVE_ACL',``
|
|
a+ /run/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
|
|
A+ /run/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
|
|
'')m4_dnl
|
|
|
|
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
|
|
'')m4_dnl
|
|
|
|
d /var/lib/systemd 0755 root root -
|
|
d /var/lib/systemd/coredump 0755 root root 3d
|