2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2011-04-16 04:02:54 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
2011-04-16 04:02:54 +04:00
# (at your option) any later version.
[Unit]
Description = Hostname Service
2012-06-26 02:04:50 +04:00
Documentation = man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
2017-06-29 05:54:12 +03:00
Documentation = https://www.freedesktop.org/wiki/Software/systemd/hostnamed
2011-04-16 04:02:54 +04:00
[Service]
BusName = org.freedesktop.hostname1
2016-08-26 14:23:27 +03:00
CapabilityBoundingSet = CAP_SYS_ADMIN
2018-11-12 19:19:48 +03:00
ExecStart = @rootlibexecdir@/systemd-hostnamed
IPAddressDeny = any
LockPersonality = yes
MemoryDenyWriteExecute = yes
NoNewPrivileges = yes
2014-03-19 19:45:28 +04:00
PrivateDevices = yes
2014-03-20 02:08:39 +04:00
PrivateNetwork = yes
2018-11-12 19:19:48 +03:00
PrivateTmp = yes
2016-08-26 14:23:27 +03:00
ProtectControlGroups = yes
2018-11-12 19:19:48 +03:00
ProtectHome = yes
2017-02-09 13:09:50 +03:00
ProtectKernelModules = yes
2018-11-12 19:19:48 +03:00
ProtectKernelTunables = yes
ProtectSystem = strict
ReadWritePaths = /etc
2016-08-26 14:23:27 +03:00
RestrictAddressFamilies = AF_UNIX
2018-11-12 19:19:48 +03:00
RestrictNamespaces = yes
RestrictRealtime = yes
2017-02-09 00:32:37 +03:00
SystemCallArchitectures = native
2018-11-12 19:19:48 +03:00
SystemCallErrorNumber = EPERM
SystemCallFilter = @system-service sethostname
WatchdogSec = 3min