]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-journal-gatewayd.service.in
Merge pull request #7476 from jhxie/ycm-meson-backend
[thirdparty/systemd.git] / units / systemd-journal-gatewayd.service.in
index fd7a9718f7391ebed8442ec565990ba3c9f3cb51..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
@@ -12,6 +14,7 @@ Requires=systemd-journal-gatewayd.socket
 
 [Service]
 ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
+User=systemd-journal-gateway
 SupplementaryGroups=systemd-journal
 DynamicUser=yes
 PrivateDevices=yes
@@ -25,6 +28,7 @@ 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