2010-09-29 00:32:53 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# 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
2010-09-29 00:32:53 +04:00
# (at your option) any later version.
2010-11-11 01:58:01 +03:00
# See tmpfiles.d(5) for details
2014-06-30 21:06:18 +04:00
d /run/user 0755 root root -
2021-05-16 14:35:51 +03:00
{% if ENABLE_UTMP %}
2024-02-27 16:21:33 +03:00
f+! /run/utmp 0664 root utmp -
2021-05-16 14:35:51 +03:00
{% endif %}
2011-04-01 02:43:28 +04:00
2011-04-10 03:30:14 +04:00
d /run/systemd/ask-password 0755 root root -
2011-07-22 23:01:15 +04:00
d /run/systemd/seats 0755 root root -
d /run/systemd/sessions 0755 root root -
d /run/systemd/users 0755 root root -
2013-07-02 05:47:23 +04:00
d /run/systemd/machines 0755 root root -
2012-04-11 04:04:46 +04:00
d /run/systemd/shutdown 0755 root root -
2012-06-25 19:35:13 +04:00
2014-06-30 21:53:10 +04:00
d /run/log 0755 root root -
2014-06-11 01:42:16 +04:00
z /run/log/journal 2755 root systemd-journal - -
2014-06-11 12:23:16 +04:00
Z /run/log/journal/%m ~2750 root systemd-journal - -
2021-05-16 14:35:51 +03:00
{% if HAVE_ACL %}
{% if ENABLE_ADM_GROUP and ENABLE_WHEEL_GROUP %}
2019-11-27 21:15:11 +03:00
a+ /run/log/journal - - - - d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x
2024-03-05 12:16:49 +03:00
A+ /run/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-X,group:wheel:r-X
2021-05-16 14:35:51 +03:00
{% elif ENABLE_ADM_GROUP %}
2019-11-27 21:15:11 +03:00
a+ /run/log/journal - - - - d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x
2024-03-05 12:16:49 +03:00
A+ /run/log/journal/%m - - - - d:group:adm:r-x,group:adm:r-X
2021-05-16 14:35:51 +03:00
{% elif ENABLE_WHEEL_GROUP %}
2019-11-27 21:15:11 +03:00
a+ /run/log/journal - - - - d:group::r-x,d:group:wheel:r-x,group::r-x,group:wheel:r-x
2024-03-05 12:16:49 +03:00
A+ /run/log/journal/%m - - - - d:group:wheel:r-x,group:wheel:r-X
2021-05-16 14:35:51 +03:00
{% endif %}
{% endif %}
2014-06-11 12:23:16 +04:00
z /var/log/journal 2755 root systemd-journal - -
z /var/log/journal/%m 2755 root systemd-journal - -
2015-11-30 02:48:40 +03:00
z /var/log/journal/%m/system.journal 0640 root systemd-journal - -
2021-05-16 14:35:51 +03:00
{% if HAVE_ACL %}
{% if ENABLE_ADM_GROUP and ENABLE_WHEEL_GROUP %}
2019-11-27 21:13:34 +03:00
a+ /var/log/journal - - - - d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x
a+ /var/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-x,group:wheel:r-x
2015-11-30 02:48:40 +03:00
a+ /var/log/journal/%m/system.journal - - - - group:adm:r--,group:wheel:r--
2021-05-16 14:35:51 +03:00
{% elif ENABLE_ADM_GROUP %}
2019-11-27 21:13:34 +03:00
a+ /var/log/journal - - - - d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x
a+ /var/log/journal/%m - - - - d:group:adm:r-x,group:adm:r-x
2016-02-15 19:08:26 +03:00
a+ /var/log/journal/%m/system.journal - - - - group:adm:r--
2021-05-16 14:35:51 +03:00
{% elif ENABLE_WHEEL_GROUP %}
2019-11-27 21:13:34 +03:00
a+ /var/log/journal - - - - d:group::r-x,d:group:wheel:r-x,group::r-x,group:wheel:r-x
a+ /var/log/journal/%m - - - - d:group:wheel:r-x,group:wheel:r-x
2016-05-01 07:02:17 +03:00
a+ /var/log/journal/%m/system.journal - - - - group:wheel:r--
2021-05-16 14:35:51 +03:00
{% endif %}
{% endif %}
2014-06-19 00:06:25 +04:00
d /var/lib/systemd 0755 root root -
2023-12-05 17:56:54 +03:00
d /var/lib/systemd/coredump 0755 root root 2w
2023-06-06 18:44:09 +03:00
# Files and directories in /var/lib/systemd/ephemeral-trees are locked by pid 1 to prevent tmpfiles from
# removing them, and tmpfiles is told to clean up anything in /var/lib/systemd/ephemeral-trees that isn't
# locked unconditionally.
d /var/lib/systemd/ephemeral-trees 0755 root root 0
2018-05-17 20:52:37 +03:00
d /var/lib/private 0700 root root -
d /var/log/private 0700 root root -
d /var/cache/private 0700 root root -
2022-08-25 18:16:52 +03:00
{% if ENABLE_EFI %}
2022-10-29 08:02:37 +03:00
# Copy sd-stub provided PCR signature and public key file from initrd into /run/, so that it will survive the initrd stage
2022-08-25 18:16:52 +03:00
C /run/systemd/tpm2-pcr-signature.json 0444 root root - /.extra/tpm2-pcr-signature.json
C /run/systemd/tpm2-pcr-public-key.pem 0444 root root - /.extra/tpm2-pcr-public-key.pem
{% endif %}