]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.in
shell-completion: replace "gdb" verb with "debug" for coredumpctl
[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
1f158013 16DefaultDependencies=no
0187368c 17After=systemd-networkd.service
1f158013
DJL
18Before=network.target nss-lookup.target shutdown.target
19Conflicts=shutdown.target
3e060555 20Wants=nss-lookup.target
091a364c
TG
21
22[Service]
23Type=notify
24Restart=always
25RestartSec=0
635f3df5 26ExecStart=!!@rootlibexecdir@/systemd-resolved
0c28d51a 27WatchdogSec=3min
635f3df5 28User=systemd-resolve
0187368c 29DynamicUser=yes
635f3df5
LP
30CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
31AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
0c28d51a 32PrivateDevices=yes
1b8689f9 33ProtectHome=yes
0c28d51a
LP
34ProtectControlGroups=yes
35ProtectKernelTunables=yes
b6c7278c 36ProtectKernelModules=yes
40652ca4 37MemoryDenyWriteExecute=yes
0c28d51a 38RestrictRealtime=yes
46657f63 39RestrictNamespaces=yes
0c28d51a 40RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
ee8f2618
LP
41SystemCallFilter=@system-service
42SystemCallErrorNumber=EPERM
7f396e5f 43SystemCallArchitectures=native
bff8f254 44LockPersonality=yes
635f3df5
LP
45RuntimeDirectory=systemd/resolve
46RuntimeDirectoryPreserve=yes
091a364c
TG
47
48[Install]
49WantedBy=multi-user.target
4d1f490c 50Alias=dbus-org.freedesktop.resolve1.service