]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-resolved.service.in
sd-bus: Add note about sd_bus_reply_method_return to SD_BUS_METHOD docs
[thirdparty/systemd.git] / units / systemd-resolved.service.in
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
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.
9
10 [Unit]
11 Description=Network Name Resolution
12 Documentation=man:systemd-resolved.service(8)
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
14 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
15 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
16 DefaultDependencies=no
17 After=systemd-sysusers.service systemd-networkd.service
18 Before=network.target nss-lookup.target shutdown.target
19 Conflicts=shutdown.target
20 Wants=nss-lookup.target
21
22 [Service]
23 AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
24 CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
25 ExecStart=!!@rootlibexecdir@/systemd-resolved
26 LockPersonality=yes
27 MemoryDenyWriteExecute=yes
28 NoNewPrivileges=yes
29 PrivateDevices=yes
30 PrivateTmp=yes
31 ProtectControlGroups=yes
32 ProtectHome=yes
33 ProtectKernelModules=yes
34 ProtectKernelTunables=yes
35 ProtectKernelLogs=yes
36 ProtectSystem=strict
37 Restart=always
38 RestartSec=0
39 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
40 RestrictNamespaces=yes
41 RestrictRealtime=yes
42 RestrictSUIDSGID=yes
43 RuntimeDirectory=systemd/resolve
44 RuntimeDirectoryPreserve=yes
45 SystemCallArchitectures=native
46 SystemCallErrorNumber=EPERM
47 SystemCallFilter=@system-service
48 Type=notify
49 User=systemd-resolve
50 @SERVICE_WATCHDOG@
51
52 [Install]
53 WantedBy=multi-user.target
54 Alias=dbus-org.freedesktop.resolve1.service