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