X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=units%2Fsystemd-journal-gatewayd.service.in;h=0f16ae4ccba1927cb85cb95b0acf7595d5b82d0c;hb=d449d63a0dc222a260a9a39fe5513db1a15d1d56;hp=efefaa4244d8c0e7fb04866383a31b90725babbb;hpb=f5df066d1d28920e49cf03d5950330138ea4f236;p=thirdparty%2Fsystemd.git diff --git a/units/systemd-journal-gatewayd.service.in b/units/systemd-journal-gatewayd.service.in index efefaa4244d..0f16ae4ccba 100644 --- a/units/systemd-journal-gatewayd.service.in +++ b/units/systemd-journal-gatewayd.service.in @@ -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 @@ -11,24 +13,28 @@ 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 +NoNewPrivileges=yes PrivateDevices=yes PrivateNetwork=yes -ProtectSystem=full -ProtectHome=yes ProtectControlGroups=yes +ProtectHome=yes +ProtectHostname=yes +ProtectKernelModules=yes ProtectKernelTunables=yes -MemoryDenyWriteExecute=yes -RestrictRealtime=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 upjournal 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] Also=systemd-journal-gatewayd.socket