]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: create /var/{lib,log,cache}/private during early boot
authorLennart Poettering <lennart@poettering.net>
Thu, 17 May 2018 17:52:37 +0000 (19:52 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 May 2018 02:00:42 +0000 (11:00 +0900)
This directory is used by the DynamicUer= stuff when used in combination
with StateDirectory=/LogDirectory=/CacheDirectory=. Let's make sure the
dir exists early on with the right perms. This is not strictly necessary
as we'll also create the dir on demand if it is missing, but in the
interest of grabbing the name early on, and making things more explicit
let's also list this in a tmpfiles.d/ snippet.

tmpfiles.d/systemd.conf.m4

index 76e3829ab21232a9e62ca77f7cd38edf78b0dc88..d39c9cbbcf4aab47d379b674bcd14f523176a606 100644 (file)
@@ -71,3 +71,7 @@ a+ /var/log/journal/%m/system.journal - - - - group:wheel:r--
 
 d /var/lib/systemd 0755 root root -
 d /var/lib/systemd/coredump 0755 root root 3d
+
+d /var/lib/private 0700 root root -
+d /var/log/private 0700 root root -
+d /var/cache/private 0700 root root -