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