]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.m4.in
Drop busname unit type
[thirdparty/systemd.git] / units / systemd-resolved.service.m4.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
22ExecStart=@rootlibexecdir@/systemd-resolved
0c28d51a 23WatchdogSec=3min
b30bf55d 24CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_NET_RAW CAP_NET_BIND_SERVICE
0c28d51a
LP
25PrivateTmp=yes
26PrivateDevices=yes
c7fb922d 27ProtectSystem=strict
1b8689f9 28ProtectHome=yes
0c28d51a
LP
29ProtectControlGroups=yes
30ProtectKernelTunables=yes
b6c7278c 31ProtectKernelModules=yes
40652ca4 32MemoryDenyWriteExecute=yes
0c28d51a
LP
33RestrictRealtime=yes
34RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
6489ccfe 35SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
7f396e5f 36SystemCallArchitectures=native
c7fb922d 37ReadWritePaths=/run/systemd
091a364c
TG
38
39[Install]
40WantedBy=multi-user.target
4d1f490c 41Alias=dbus-org.freedesktop.resolve1.service