]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-journal-gatewayd.service.in
test-network: replace check_link_exists() with wait_online()
[thirdparty/systemd.git] / units / systemd-journal-gatewayd.service.in
index 3695240cbf9f8c32215d3980d5e79586f3ea5bde..50f774512b8c7d1fced3fb670c4e88dc634ec1a6 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,18 +9,31 @@
 
 [Unit]
 Description=Journal Gateway Service
+Documentation=man:systemd-journal-gatewayd(8)
 Requires=systemd-journal-gatewayd.socket
 
 [Service]
+DynamicUser=yes
 ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
-User=systemd-journal-gateway
-Group=systemd-journal-gateway
-SupplementaryGroups=systemd-journal
-PrivateTmp=yes
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
 PrivateDevices=yes
 PrivateNetwork=yes
-ReadOnlySystem=yes
-ProtectedHome=yes
+ProtectControlGroups=yes
+ProtectHome=yes
+ProtectHostname=yes
+ProtectKernelModules=yes
+ProtectKernelTunables=yes
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RestrictNamespaces=yes
+RestrictRealtime=yes
+SupplementaryGroups=systemd-journal
+SystemCallArchitectures=native
+User=systemd-journal-gateway
+
+# 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]
 Also=systemd-journal-gatewayd.socket