]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.in
units: move resolved to sysinit.target (from basic.target)
[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
b5478380 18After=systemd-sysusers.service
29a8fbf4 19Before=sysinit.target network.target nss-lookup.target shutdown.target
1f158013 20Conflicts=shutdown.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
059cc610 27ExecStart=!!{{ROOTLIBEXECDIR}}/systemd-resolved
3ca9940c
LP
28LockPersonality=yes
29MemoryDenyWriteExecute=yes
30NoNewPrivileges=yes
0c28d51a 31PrivateDevices=yes
3ca9940c 32PrivateTmp=yes
24da96a1 33ProtectProc=invisible
cabc1c6d 34ProtectClock=yes
0c28d51a 35ProtectControlGroups=yes
3ca9940c 36ProtectHome=yes
24da96a1 37ProtectKernelLogs=yes
b6c7278c 38ProtectKernelModules=yes
3ca9940c
LP
39ProtectKernelTunables=yes
40ProtectSystem=strict
41Restart=always
42RestartSec=0
0c28d51a 43RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
3ca9940c
LP
44RestrictNamespaces=yes
45RestrictRealtime=yes
62aa2924 46RestrictSUIDSGID=yes
635f3df5
LP
47RuntimeDirectory=systemd/resolve
48RuntimeDirectoryPreserve=yes
3ca9940c
LP
49SystemCallArchitectures=native
50SystemCallErrorNumber=EPERM
51SystemCallFilter=@system-service
52Type=notify
53User=systemd-resolve
059cc610 54{{SERVICE_WATCHDOG}}
091a364c
TG
55
56[Install]
29a8fbf4 57WantedBy=sysinit.target
4d1f490c 58Alias=dbus-org.freedesktop.resolve1.service