mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 21:03:52 +08:00
c74cdb5cc3
After the discussions around #7003 I think we should restore the User=systemd-journal-gateway line for systemd-journal-gatewayd.service, too, so that we continue to use the state user if it exists, and create it as dynamic user only when it does not. Note that undoes part of a change made after 234, i.e. a never released change.
37 lines
1.0 KiB
SYSTEMD
37 lines
1.0 KiB
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Journal Gateway Service
|
|
Documentation=man:systemd-journal-gatewayd(8)
|
|
Requires=systemd-journal-gatewayd.socket
|
|
|
|
[Service]
|
|
ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
|
|
User=systemd-journal-gateway
|
|
SupplementaryGroups=systemd-journal
|
|
DynamicUser=yes
|
|
PrivateDevices=yes
|
|
PrivateNetwork=yes
|
|
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
|
|
LimitNOFILE=16384
|
|
|
|
[Install]
|
|
Also=systemd-journal-gatewayd.socket
|