]> 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 b0bee3925e3194987ff78897d5cdfbe1ebd971a8..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
@@ -14,11 +16,10 @@ After=network-online.target
 [Service]
 ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
 User=systemd-journal-upload
+DynamicUser=yes
 SupplementaryGroups=systemd-journal
 WatchdogSec=3min
-PrivateTmp=yes
 PrivateDevices=yes
-ProtectSystem=strict
 ProtectHome=yes
 ProtectControlGroups=yes
 ProtectKernelTunables=yes
@@ -28,6 +29,7 @@ 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