]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.in
Merge pull request #6855 from keszybz/more-docs
[thirdparty/systemd.git] / units / systemd-resolved.service.in
CommitLineData
ee9b9875
TG
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.
ee9b9875 7
091a364c
TG
8[Unit]
9Description=Network Name Resolution
10Documentation=man:systemd-resolved.service(8)
16a5d412
DR
11Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
12Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
13Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
1dff3202 14After=systemd-networkd.service network.target
3e060555
YW
15Before=network-online.target nss-lookup.target
16Wants=nss-lookup.target
091a364c
TG
17
18[Service]
19Type=notify
20Restart=always
21RestartSec=0
635f3df5 22ExecStart=!!@rootlibexecdir@/systemd-resolved
0c28d51a 23WatchdogSec=3min
635f3df5
LP
24User=systemd-resolve
25CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
26AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
0c28d51a
LP
27PrivateTmp=yes
28PrivateDevices=yes
c7fb922d 29ProtectSystem=strict
1b8689f9 30ProtectHome=yes
0c28d51a
LP
31ProtectControlGroups=yes
32ProtectKernelTunables=yes
b6c7278c 33ProtectKernelModules=yes
40652ca4 34MemoryDenyWriteExecute=yes
0c28d51a
LP
35RestrictRealtime=yes
36RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
6489ccfe 37SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
7f396e5f 38SystemCallArchitectures=native
bff8f254 39LockPersonality=yes
635f3df5
LP
40RuntimeDirectory=systemd/resolve
41RuntimeDirectoryPreserve=yes
091a364c
TG
42
43[Install]
44WantedBy=multi-user.target
4d1f490c 45Alias=dbus-org.freedesktop.resolve1.service