]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-journal-gatewayd.service.in
Merge pull request #8626 from floppym/initctl
[thirdparty/systemd.git] / units / systemd-journal-gatewayd.service.in
index f4f845841da0f80a7c54447a764084b3c7d66d98..9768928c579ad55d663013e622aa57e355504521 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
@@ -13,13 +15,20 @@ Requires=systemd-journal-gatewayd.socket
 [Service]
 ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
 User=systemd-journal-gateway
-Group=systemd-journal-gateway
 SupplementaryGroups=systemd-journal
-PrivateTmp=yes
+DynamicUser=yes
 PrivateDevices=yes
 PrivateNetwork=yes
-ProtectSystem=full
 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
 
 # If there are many split upjournal files we need a lot of fds to
 # access them all and combine