2017-11-18 16:35:03 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2014-05-16 18:14:23 +00: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-18 20:10:48 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Network Name Resolution
|
|
|
|
Documentation=man:systemd-resolved.service(8)
|
2017-06-29 02:54:12 +00:00
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
|
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
|
|
|
|
Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
|
2015-05-14 20:32:35 +00:00
|
|
|
After=systemd-networkd.service network.target
|
2017-04-21 09:21:17 +00:00
|
|
|
Before=network-online.target nss-lookup.target
|
|
|
|
Wants=nss-lookup.target
|
2014-05-18 20:10:48 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2017-08-09 14:15:07 +00:00
|
|
|
ExecStart=!!@rootlibexecdir@/systemd-resolved
|
2016-08-26 11:23:27 +00:00
|
|
|
WatchdogSec=3min
|
2017-08-09 14:15:07 +00:00
|
|
|
User=systemd-resolve
|
|
|
|
CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
|
|
|
|
AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
|
2016-08-26 11:23:27 +00:00
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
2017-02-09 09:58:28 +00:00
|
|
|
ProtectSystem=strict
|
2014-06-04 16:07:55 +00:00
|
|
|
ProtectHome=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2017-02-09 10:09:50 +00:00
|
|
|
ProtectKernelModules=yes
|
2016-06-08 12:23:37 +00:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
2017-02-09 10:22:08 +00:00
|
|
|
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2017-09-14 17:45:40 +00:00
|
|
|
LockPersonality=yes
|
2017-08-09 14:15:07 +00:00
|
|
|
RuntimeDirectory=systemd/resolve
|
|
|
|
RuntimeDirectoryPreserve=yes
|
2014-05-18 20:10:48 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2017-02-16 16:48:48 +00:00
|
|
|
Alias=dbus-org.freedesktop.resolve1.service
|