]> git.proxmox.com Git - systemd.git/blame - units/systemd-resolved.service.in
New upstream version 242
[systemd.git] / units / systemd-resolved.service.in
CommitLineData
52ad194e
MB
1# SPDX-License-Identifier: LGPL-2.1+
2#
60f067b4
JS
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]
11Description=Network Name Resolution
12Documentation=man:systemd-resolved.service(8)
81c58355
MB
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
1d42b86d 16DefaultDependencies=no
6e866b33 17After=systemd-sysusers.service systemd-networkd.service
1d42b86d
MB
18Before=network.target nss-lookup.target shutdown.target
19Conflicts=shutdown.target
81c58355 20Wants=nss-lookup.target
60f067b4
JS
21
22[Service]
f5e65279 23AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
6e866b33
MB
24CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
25ExecStart=!!@rootlibexecdir@/systemd-resolved
26LockPersonality=yes
27MemoryDenyWriteExecute=yes
28NoNewPrivileges=yes
8a584da2 29PrivateDevices=yes
6e866b33 30PrivateTmp=yes
8a584da2 31ProtectControlGroups=yes
6e866b33 32ProtectHome=yes
81c58355 33ProtectKernelModules=yes
6e866b33
MB
34ProtectKernelTunables=yes
35ProtectSystem=strict
36Restart=always
37RestartSec=0
8a584da2 38RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
6e866b33
MB
39RestrictNamespaces=yes
40RestrictRealtime=yes
bb4f798a 41RestrictSUIDSGID=yes
f5e65279
MB
42RuntimeDirectory=systemd/resolve
43RuntimeDirectoryPreserve=yes
6e866b33
MB
44SystemCallArchitectures=native
45SystemCallErrorNumber=EPERM
46SystemCallFilter=@system-service
47Type=notify
48User=systemd-resolve
49WatchdogSec=3min
60f067b4
JS
50
51[Install]
52WantedBy=multi-user.target
2897b343 53Alias=dbus-org.freedesktop.resolve1.service