]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-journal-upload.service.in
Merge pull request #16519 from yuwata/networkctl-altnames
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
index d8fd24362029c98b8990fac527b2ab0fcfa3cec3..2f1cce85187fb159118097d8be8733d9c5fea3ba 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
@@ -12,23 +14,29 @@ Wants=network-online.target
 After=network-online.target
 
 [Service]
+DynamicUser=yes
 ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
-User=systemd-journal-upload
-SupplementaryGroups=systemd-journal
-WatchdogSec=3min
-PrivateTmp=yes
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
 PrivateDevices=yes
-ProtectSystem=full
-ProtectHome=yes
 ProtectControlGroups=yes
+ProtectHome=yes
+ProtectHostname=yes
+ProtectKernelModules=yes
 ProtectKernelTunables=yes
-MemoryDenyWriteExecute=yes
-RestrictRealtime=yes
+ProtectKernelLogs=yes
 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RestrictNamespaces=yes
+RestrictRealtime=yes
+StateDirectory=systemd/journal-upload
+SupplementaryGroups=systemd-journal
+SystemCallArchitectures=native
+User=systemd-journal-upload
+@SERVICE_WATCHDOG@
 
-# If there are many split up journal files we need a lot of fds to
-# access them all and combine
-LimitNOFILE=16384
+# If there are many split up journal files we need a lot of fds to access them
+# all in parallel.
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@
 
 [Install]
 WantedBy=multi-user.target