]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.in
resolved: support reloading configuration at runtime
[thirdparty/systemd.git] / units / systemd-resolved.service.in
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
a7df2d1e 2#
ee9b9875
TG
3# This file is part of systemd.
4#
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.
ee9b9875 9
091a364c
TG
10[Unit]
11Description=Network Name Resolution
12Documentation=man:systemd-resolved.service(8)
21006e0e 13Documentation=man:org.freedesktop.resolve1(5)
16a5d412
DR
14Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
15Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
21006e0e 16
1f158013 17DefaultDependencies=no
6e6b59ed 18After=systemd-sysctl.service systemd-sysusers.service
75efd16f
DDM
19Before=sysinit.target network.target nss-lookup.target shutdown.target initrd-switch-root.target
20Conflicts=shutdown.target initrd-switch-root.target
3e060555 21Wants=nss-lookup.target
091a364c
TG
22
23[Service]
635f3df5 24AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
e67b818c 25BusName=org.freedesktop.resolve1
3ca9940c 26CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
b0d3095f 27ExecStart=!!{{LIBEXECDIR}}/systemd-resolved
3ca9940c
LP
28LockPersonality=yes
29MemoryDenyWriteExecute=yes
30NoNewPrivileges=yes
0c28d51a 31PrivateDevices=yes
3ca9940c 32PrivateTmp=yes
cabc1c6d 33ProtectClock=yes
0c28d51a 34ProtectControlGroups=yes
3ca9940c 35ProtectHome=yes
24da96a1 36ProtectKernelLogs=yes
b6c7278c 37ProtectKernelModules=yes
3ca9940c
LP
38ProtectKernelTunables=yes
39ProtectSystem=strict
40Restart=always
41RestartSec=0
0c28d51a 42RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
3ca9940c
LP
43RestrictNamespaces=yes
44RestrictRealtime=yes
62aa2924 45RestrictSUIDSGID=yes
635f3df5
LP
46RuntimeDirectory=systemd/resolve
47RuntimeDirectoryPreserve=yes
3ca9940c
LP
48SystemCallArchitectures=native
49SystemCallErrorNumber=EPERM
50SystemCallFilter=@system-service
14a52176 51Type=notify-reload
3ca9940c 52User=systemd-resolve
1ab6ae19
DDM
53ImportCredential=network.dns
54ImportCredential=network.search_domains
059cc610 55{{SERVICE_WATCHDOG}}
091a364c
TG
56
57[Install]
29a8fbf4 58WantedBy=sysinit.target
4d1f490c 59Alias=dbus-org.freedesktop.resolve1.service