1 # SPDX-License-Identifier: LGPL-2.1+
3 # This file is part of systemd.
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.
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
16 ExecStart=@rootlibexecdir@/systemd-hostnamed
17 BusName=org.freedesktop.hostname1
19 CapabilityBoundingSet=CAP_SYS_ADMIN
25 ProtectControlGroups=yes
26 ProtectKernelTunables=yes
27 ProtectKernelModules=yes
28 MemoryDenyWriteExecute=yes
30 RestrictNamespaces=yes
31 RestrictAddressFamilies=AF_UNIX
32 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
33 SystemCallArchitectures=native