]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-hostnamed.service.in
shell-completion: replace "gdb" verb with "debug" for coredumpctl
[thirdparty/systemd.git] / units / systemd-hostnamed.service.in
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
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
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Hostname Service
12 Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed
14
15 [Service]
16 ExecStart=@rootlibexecdir@/systemd-hostnamed
17 BusName=org.freedesktop.hostname1
18 WatchdogSec=3min
19 CapabilityBoundingSet=CAP_SYS_ADMIN
20 PrivateTmp=yes
21 PrivateDevices=yes
22 PrivateNetwork=yes
23 ProtectSystem=strict
24 ProtectHome=yes
25 ProtectControlGroups=yes
26 ProtectKernelTunables=yes
27 ProtectKernelModules=yes
28 MemoryDenyWriteExecute=yes
29 RestrictRealtime=yes
30 RestrictNamespaces=yes
31 RestrictAddressFamilies=AF_UNIX
32 SystemCallFilter=@system-service sethostname
33 SystemCallErrorNumber=EPERM
34 SystemCallArchitectures=native
35 LockPersonality=yes
36 IPAddressDeny=any
37 ReadWritePaths=/etc