]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-resolved.service.in
random-util: Add an environment variable to disable RDRAND.
[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
62fb7e80 17After=systemd-sysusers.service 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]
635f3df5 23AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
e67b818c 24BusName=org.freedesktop.resolve1
3ca9940c
LP
25CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
26ExecStart=!!@rootlibexecdir@/systemd-resolved
27LockPersonality=yes
28MemoryDenyWriteExecute=yes
29NoNewPrivileges=yes
0c28d51a 30PrivateDevices=yes
3ca9940c 31PrivateTmp=yes
24da96a1 32ProtectProc=invisible
cabc1c6d 33ProtectClock=yes
0c28d51a 34ProtectControlGroups=yes
3ca9940c 35ProtectHome=yes
24da96a1 36ProtectKernelLogs=yes
b6c7278c 37ProtectKernelModules=yes
3ca9940c
LP
38ProtectKernelTunables=yes
39ProtectSystem=strict
40Restart=always
41RestartSec=0
0c28d51a 42RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
3ca9940c
LP
43RestrictNamespaces=yes
44RestrictRealtime=yes
62aa2924 45RestrictSUIDSGID=yes
635f3df5
LP
46RuntimeDirectory=systemd/resolve
47RuntimeDirectoryPreserve=yes
3ca9940c
LP
48SystemCallArchitectures=native
49SystemCallErrorNumber=EPERM
50SystemCallFilter=@system-service
51Type=notify
52User=systemd-resolve
21d0dd5a 53@SERVICE_WATCHDOG@
091a364c
TG
54
55[Install]
56WantedBy=multi-user.target
4d1f490c 57Alias=dbus-org.freedesktop.resolve1.service