2017-11-18 17:35:03 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2011-04-16 02:02:54 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02: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 02:02:54 +02:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Hostname Service
|
2012-06-26 00:04:50 +02:00
|
|
|
Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
|
2017-06-29 04:54:12 +02:00
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/hostnamed
|
2011-04-16 02:02:54 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-hostnamed
|
|
|
|
BusName=org.freedesktop.hostname1
|
2015-09-23 17:27:39 +02:00
|
|
|
WatchdogSec=3min
|
2016-08-26 13:23:27 +02:00
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN
|
2014-03-19 16:45:28 +01:00
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
2014-03-19 23:08:39 +01:00
|
|
|
PrivateNetwork=yes
|
2017-02-09 10:58:28 +01:00
|
|
|
ProtectSystem=strict
|
2014-06-04 18:07:55 +02:00
|
|
|
ProtectHome=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2017-02-09 11:09:50 +01:00
|
|
|
ProtectKernelModules=yes
|
2016-06-08 14:23:37 +02:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictRealtime=yes
|
2017-02-09 10:28:23 +01:00
|
|
|
RestrictNamespaces=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2017-02-09 11:22:08 +01:00
|
|
|
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
|
2017-02-08 22:32:37 +01:00
|
|
|
SystemCallArchitectures=native
|
2017-09-14 19:45:40 +02:00
|
|
|
LockPersonality=yes
|
2017-10-04 14:16:28 +02:00
|
|
|
IPAddressDeny=any
|
2017-02-09 10:58:28 +01:00
|
|
|
ReadWritePaths=/etc
|