]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/systemd-hostnamed.service.in
meson: stop creating enablement symlinks in /etc during installation
[thirdparty/systemd.git] / units / systemd-hostnamed.service.in
... / ...
CommitLineData
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]
11Description=Hostname Service
12Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
13Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed
14
15[Service]
16BusName=org.freedesktop.hostname1
17CapabilityBoundingSet=CAP_SYS_ADMIN
18ExecStart=@rootlibexecdir@/systemd-hostnamed
19IPAddressDeny=any
20LockPersonality=yes
21MemoryDenyWriteExecute=yes
22NoNewPrivileges=yes
23PrivateDevices=yes
24PrivateNetwork=yes
25PrivateTmp=yes
26ProtectControlGroups=yes
27ProtectHome=yes
28ProtectKernelModules=yes
29ProtectKernelTunables=yes
30ProtectSystem=strict
31ReadWritePaths=/etc
32RestrictAddressFamilies=AF_UNIX
33RestrictNamespaces=yes
34RestrictRealtime=yes
35SystemCallArchitectures=native
36SystemCallErrorNumber=EPERM
37SystemCallFilter=@system-service sethostname
38WatchdogSec=3min