]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-journal-upload.service.in
process-util: replace PTR_TO_PID() and PID_TO_PTR macro by inline functions
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
index a757673a621b13504a5fa53089b21b9008f21830..42da70f473cda1d5a810b1122be48be20eadb6d4 100644 (file)
@@ -1,3 +1,5 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
 #  This file is part of systemd.
 #
 #  systemd is free software; you can redistribute it and/or modify it
@@ -7,15 +9,28 @@
 
 [Unit]
 Description=Journal Remote Upload Service
-After=network.target
+Documentation=man:systemd-journal-upload(8)
+Wants=network-online.target
+After=network-online.target
 
 [Service]
-ExecStart=@rootlibexecdir@/systemd-journal-upload \
-          --save-state
+ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
 User=systemd-journal-upload
-PrivateTmp=yes
-PrivateDevices=yes
+DynamicUser=yes
+SupplementaryGroups=systemd-journal
 WatchdogSec=3min
+PrivateDevices=yes
+ProtectHome=yes
+ProtectControlGroups=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+MemoryDenyWriteExecute=yes
+RestrictRealtime=yes
+RestrictNamespaces=yes
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+SystemCallArchitectures=native
+LockPersonality=yes
+StateDirectory=systemd/journal-upload
 
 # If there are many split up journal files we need a lot of fds to
 # access them all and combine