]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-hostnamed.service.in
Merge pull request #6924 from andir/vrf-dhcpv4
[thirdparty/systemd.git] / units / systemd-hostnamed.service.in
1 # This file is part of systemd.
2 #
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
7
8 [Unit]
9 Description=Hostname Service
10 Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
11 Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed
12
13 [Service]
14 ExecStart=@rootlibexecdir@/systemd-hostnamed
15 BusName=org.freedesktop.hostname1
16 WatchdogSec=3min
17 CapabilityBoundingSet=CAP_SYS_ADMIN
18 PrivateTmp=yes
19 PrivateDevices=yes
20 PrivateNetwork=yes
21 ProtectSystem=strict
22 ProtectHome=yes
23 ProtectControlGroups=yes
24 ProtectKernelTunables=yes
25 ProtectKernelModules=yes
26 MemoryDenyWriteExecute=yes
27 RestrictRealtime=yes
28 RestrictNamespaces=yes
29 RestrictAddressFamilies=AF_UNIX
30 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
31 SystemCallArchitectures=native
32 LockPersonality=yes
33 ReadWritePaths=/etc