1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # This file is part of systemd.
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
11 Description=Network Name Resolution
12 Documentation=man:systemd-resolved.service(8)
13 Documentation=man:org.freedesktop.resolve1(5)
14 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
15 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
17 DefaultDependencies=no
18 After=systemd-sysusers.service systemd-networkd.service
19 Before=network.target nss-lookup.target shutdown.target
20 Conflicts=shutdown.target
21 Wants=nss-lookup.target
24 AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
25 BusName=org.freedesktop.resolve1
26 CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
27 ExecStart=!!@rootlibexecdir@/systemd-resolved
29 MemoryDenyWriteExecute=yes
35 ProtectControlGroups=yes
38 ProtectKernelModules=yes
39 ProtectKernelTunables=yes
43 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
44 RestrictNamespaces=yes
47 RuntimeDirectory=systemd/resolve
48 RuntimeDirectoryPreserve=yes
49 SystemCallArchitectures=native
50 SystemCallErrorNumber=EPERM
51 SystemCallFilter=@system-service
57 WantedBy=multi-user.target
58 Alias=dbus-org.freedesktop.resolve1.service