]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles.d: add $ flag to all lines which are clearly private to our packages, and... 34393/head
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Sep 2024 15:24:20 +0000 (17:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 15 Sep 2024 17:44:05 +0000 (19:44 +0200)
(This excludes any dirs that contain resources placed there by the user)

(I also didn't bother marking resources belonging to components that are
really not optional for us)

tmpfiles.d/20-systemd-shell-extra.conf.in
tmpfiles.d/20-systemd-ssh-generator.conf.in
tmpfiles.d/legacy.conf.in
tmpfiles.d/systemd-network.conf
tmpfiles.d/systemd-nspawn.conf
tmpfiles.d/systemd-tmp.conf
tmpfiles.d/systemd.conf.in

index 8ebe83dd697205cf681713addc900f5d449f0d9b..02f1ef5802357de9894ffe438510b6f4b7eb83bc 100644 (file)
@@ -8,5 +8,5 @@
 # See tmpfiles.d(5) for details
 
 {% if LINK_SHELL_EXTRA_DROPIN %}
-L {{SHELLPROFILEDIR}}/70-systemd-shell-extra.sh - - - - {{LIBEXECDIR}}/profile.d/70-systemd-shell-extra.sh
+L$ {{SHELLPROFILEDIR}}/70-systemd-shell-extra.sh - - - - {{LIBEXECDIR}}/profile.d/70-systemd-shell-extra.sh
 {% endif %}
index dbe354a2d2d9457ac3f749c736e5c734e52a6324..8c9d3af1c35e5c00d373c0b137f50464cdf8f678 100644 (file)
@@ -8,7 +8,7 @@
 # See tmpfiles.d(5) for details
 
 {% if LINK_SSH_PROXY_DROPIN %}
-L {{SSHCONFDIR}}/20-systemd-ssh-proxy.conf - - - - {{LIBEXECDIR}}/ssh_config.d/20-systemd-ssh-proxy.conf
+L$ {{SSHCONFDIR}}/20-systemd-ssh-proxy.conf - - - - {{LIBEXECDIR}}/ssh_config.d/20-systemd-ssh-proxy.conf
 {% endif %}
 {% if CREATE_SSHDPRIVSEPDIR %}
 d {{SSHDPRIVSEPDIR}} 0755
index 4f2c0d7c4310aeea4d75b7c416c81ad63777cf37..ec2f7aea72c84c220df4855bda685959633c3a77 100644 (file)
@@ -13,7 +13,7 @@
 d /run/lock 0755 root root -
 L /var/lock - - - - ../run/lock
 {% if CREATE_LOG_DIRS %}
-L /var/log/README - - - - ../..{{DOC_DIR}}/README.logs
+L$ /var/log/README - - - - ../..{{DOC_DIR}}/README.logs
 {% endif %}
 
 # /run/lock/subsys is used for serializing SysV service execution, and
index 323beca59c521f51f16e91735a8f53faac25957a..5898e88de56c8b4eb219c2c2e892e6a72bde8279 100644 (file)
@@ -7,7 +7,7 @@
 
 # See tmpfiles.d(5) for details
 
-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 -
-d /var/lib/systemd/network  0755 systemd-network systemd-network -
+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 -
+d$ /var/lib/systemd/network  0755 systemd-network systemd-network -
index 78bd1c670e0fe8686237ff535a4dea0016931629..6549ea41018ab1bf2a9782f1c735c638bb124eac 100644 (file)
@@ -19,5 +19,5 @@ Q /var/lib/machines 0700 - - -
 # systemd-nspawn --ephemeral places snapshots) we are more strict, to
 # avoid removing unrelated temporary files.
 
-R! /var/lib/machines/.#*
-R! /.#machine.*
+R!$ /var/lib/machines/.#*
+R!$ /.#machine.*
index d47d468fba86ba0ef22031563903d291bc9167ff..093830586c1f40936c5c48b39af90e0356826970 100644 (file)
@@ -14,10 +14,10 @@ x /var/tmp/systemd-private-%b-*
 X /var/tmp/systemd-private-%b-*/tmp
 
 # Remove top-level private temporary directories on each boot
-R! /tmp/systemd-private-*
-R! /var/tmp/systemd-private-*
+R!$ /tmp/systemd-private-*
+R!$ /var/tmp/systemd-private-*
 
 # Handle lost systemd-coredump temp files. They could be lost on old filesystems,
 # for example, after hard reboot.
 x  /var/lib/systemd/coredump/.#core*.%b*
-r! /var/lib/systemd/coredump/.#*
+r!$ /var/lib/systemd/coredump/.#*
index 815fb2dd4089c897c2086184308051a6022a4aaf..dac2e5bbc40dc8ffb774a0a7ff7824148610a428 100644 (file)
@@ -13,11 +13,11 @@ f+! /run/utmp 0664 root utmp -
 {% endif %}
 
 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/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 -
+d$ /run/systemd/shutdown 0755 root root -
 
 d /run/log 0755 root root -