]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-resolved.service.in
Merge pull request #6853 from sourcejedi/GetAll
[thirdparty/systemd.git] / units / systemd-resolved.service.in
1 # This file is part of systemd.
2 #
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
7
8 [Unit]
9 Description=Network Name Resolution
10 Documentation=man:systemd-resolved.service(8)
11 Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
12 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
14 After=systemd-networkd.service network.target
15 Before=network-online.target nss-lookup.target
16 Wants=nss-lookup.target
17
18 [Service]
19 Type=notify
20 Restart=always
21 RestartSec=0
22 ExecStart=!!@rootlibexecdir@/systemd-resolved
23 WatchdogSec=3min
24 User=systemd-resolve
25 CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
26 AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
27 PrivateTmp=yes
28 PrivateDevices=yes
29 ProtectSystem=strict
30 ProtectHome=yes
31 ProtectControlGroups=yes
32 ProtectKernelTunables=yes
33 ProtectKernelModules=yes
34 MemoryDenyWriteExecute=yes
35 RestrictRealtime=yes
36 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
37 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
38 SystemCallArchitectures=native
39 LockPersonality=yes
40 RuntimeDirectory=systemd/resolve
41 RuntimeDirectoryPreserve=yes
42
43 [Install]
44 WantedBy=multi-user.target
45 Alias=dbus-org.freedesktop.resolve1.service