From: Yu Watanabe Date: Thu, 30 Mar 2017 16:01:03 +0000 (+0900) Subject: journal-upload: add state file directory to ReadWritePaths (#5578) X-Git-Tag: v234~344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0b46a2c12c4ba04ea2425d7930b14ca48bc6545;p=thirdparty%2Fsystemd.git journal-upload: add state file directory to ReadWritePaths (#5578) The commit c7fb922d6250543ba5462fa7a6ff03cc8f628e94 prohibits journal-upload to save its state in /var/lib/systemd/journal-upload/state, thus the daemon fails and outputs the following error message even if the directory is not read-only file system ```Cannot save state to /var/lib/systemd/journal-upload/state: Read-only file system``` This commit adds the permission the daemon to write the state file. --- diff --git a/units/systemd-journal-upload.service.in b/units/systemd-journal-upload.service.in index b9eab215428..d00b9292117 100644 --- a/units/systemd-journal-upload.service.in +++ b/units/systemd-journal-upload.service.in @@ -28,6 +28,7 @@ RestrictRealtime=yes RestrictNamespaces=yes RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 SystemCallArchitectures=native +ReadWritePaths=/var/lib/systemd/journal-upload # If there are many split up journal files we need a lot of fds to # access them all and combine