2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2014-05-17 02:14:23 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# 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
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
2014-05-19 04:10:48 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Network Name Resolution
|
|
|
|
Documentation=man:systemd-resolved.service(8)
|
2020-09-29 14:03:10 +08:00
|
|
|
Documentation=man:org.freedesktop.resolve1(5)
|
2017-06-29 10:54:12 +08:00
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
|
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
|
2020-09-29 14:03:10 +08:00
|
|
|
|
2017-12-12 02:27:49 +08:00
|
|
|
DefaultDependencies=no
|
2018-09-19 16:04:33 +08:00
|
|
|
After=systemd-sysusers.service systemd-networkd.service
|
2017-12-12 02:27:49 +08:00
|
|
|
Before=network.target nss-lookup.target shutdown.target
|
|
|
|
Conflicts=shutdown.target
|
2017-04-21 17:21:17 +08:00
|
|
|
Wants=nss-lookup.target
|
2014-05-19 04:10:48 +08:00
|
|
|
|
|
|
|
[Service]
|
2017-08-09 22:15:07 +08:00
|
|
|
AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
|
2020-09-11 16:56:06 +08:00
|
|
|
BusName=org.freedesktop.resolve1
|
2018-11-13 00:19:48 +08:00
|
|
|
CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
|
|
|
|
ExecStart=!!@rootlibexecdir@/systemd-resolved
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
PrivateDevices=yes
|
2018-11-13 00:19:48 +08:00
|
|
|
PrivateTmp=yes
|
2020-08-06 20:50:38 +08:00
|
|
|
ProtectProc=invisible
|
2020-04-03 02:18:11 +08:00
|
|
|
ProtectClock=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
ProtectControlGroups=yes
|
2018-11-13 00:19:48 +08:00
|
|
|
ProtectHome=yes
|
2020-08-06 20:50:38 +08:00
|
|
|
ProtectKernelLogs=yes
|
2017-02-09 18:09:50 +08:00
|
|
|
ProtectKernelModules=yes
|
2018-11-13 00:19:48 +08:00
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2016-08-26 19:23:27 +08:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
2018-11-13 00:19:48 +08:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-21 02:52:20 +08:00
|
|
|
RestrictSUIDSGID=yes
|
2017-08-09 22:15:07 +08:00
|
|
|
RuntimeDirectory=systemd/resolve
|
|
|
|
RuntimeDirectoryPreserve=yes
|
2018-11-13 00:19:48 +08:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
Type=notify
|
|
|
|
User=systemd-resolve
|
2019-10-25 18:17:24 +08:00
|
|
|
@SERVICE_WATCHDOG@
|
2014-05-19 04:10:48 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2017-02-17 00:48:48 +08:00
|
|
|
Alias=dbus-org.freedesktop.resolve1.service
|