]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-hostnamed.service.in
update TODO
[thirdparty/systemd.git] / units / systemd-hostnamed.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
7640a5de
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
7640a5de
LP
8# (at your option) any later version.
9
7640a5de
LP
10[Unit]
11Description=Hostname Service
29f4f511 12Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
16a5d412 13Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed
7640a5de
LP
14
15[Service]
7640a5de 16BusName=org.freedesktop.hostname1
0c28d51a 17CapabilityBoundingSet=CAP_SYS_ADMIN
3ca9940c
LP
18ExecStart=@rootlibexecdir@/systemd-hostnamed
19IPAddressDeny=any
20LockPersonality=yes
21MemoryDenyWriteExecute=yes
22NoNewPrivileges=yes
d99a7052 23PrivateDevices=yes
f21a71a9 24PrivateNetwork=yes
3ca9940c 25PrivateTmp=yes
0c28d51a 26ProtectControlGroups=yes
3ca9940c 27ProtectHome=yes
b6c7278c 28ProtectKernelModules=yes
3ca9940c 29ProtectKernelTunables=yes
6168ae58 30ProtectKernelLogs=yes
3ca9940c
LP
31ProtectSystem=strict
32ReadWritePaths=/etc
0c28d51a 33RestrictAddressFamilies=AF_UNIX
3ca9940c
LP
34RestrictNamespaces=yes
35RestrictRealtime=yes
62aa2924 36RestrictSUIDSGID=yes
7f396e5f 37SystemCallArchitectures=native
3ca9940c
LP
38SystemCallErrorNumber=EPERM
39SystemCallFilter=@system-service sethostname
21d0dd5a 40@SERVICE_WATCHDOG@