diff options
author | 2018-05-17 19:52:37 +0200 | |
---|---|---|
committer | 2018-05-18 11:00:42 +0900 | |
commit | a78388e1cbb3067485d9f97954fa86aba94711b4 (patch) | |
tree | 3d34e1f673124ba625445fa8cb2faca8f6e02c3a /tmpfiles.d | |
parent | core: refuse StateDirectory=private, as our internal DynamicUser=1 symlink is... (diff) | |
download | systemd-a78388e1cbb3067485d9f97954fa86aba94711b4.tar.gz systemd-a78388e1cbb3067485d9f97954fa86aba94711b4.tar.bz2 systemd-a78388e1cbb3067485d9f97954fa86aba94711b4.zip |
tmpfiles: create /var/{lib,log,cache}/private during early boot
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.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r-- | tmpfiles.d/systemd.conf.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmpfiles.d/systemd.conf.m4 b/tmpfiles.d/systemd.conf.m4 index 76e3829ab..d39c9cbbc 100644 --- a/tmpfiles.d/systemd.conf.m4 +++ b/tmpfiles.d/systemd.conf.m4 @@ -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 - |