]>
Commit | Line | Data |
---|---|---|
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] | |
11 | Description=Network Name Resolution | |
12 | Documentation=man:systemd-resolved.service(8) | |
81c58355 MB |
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 | |
1d42b86d | 16 | DefaultDependencies=no |
6e866b33 | 17 | After=systemd-sysusers.service systemd-networkd.service |
1d42b86d MB |
18 | Before=network.target nss-lookup.target shutdown.target |
19 | Conflicts=shutdown.target | |
81c58355 | 20 | Wants=nss-lookup.target |
60f067b4 JS |
21 | |
22 | [Service] | |
f5e65279 | 23 | AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE |
6e866b33 MB |
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 | |
8a584da2 | 29 | PrivateDevices=yes |
6e866b33 | 30 | PrivateTmp=yes |
8a584da2 | 31 | ProtectControlGroups=yes |
6e866b33 | 32 | ProtectHome=yes |
81c58355 | 33 | ProtectKernelModules=yes |
6e866b33 MB |
34 | ProtectKernelTunables=yes |
35 | ProtectSystem=strict | |
36 | Restart=always | |
37 | RestartSec=0 | |
8a584da2 | 38 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 |
6e866b33 MB |
39 | RestrictNamespaces=yes |
40 | RestrictRealtime=yes | |
bb4f798a | 41 | RestrictSUIDSGID=yes |
f5e65279 MB |
42 | RuntimeDirectory=systemd/resolve |
43 | RuntimeDirectoryPreserve=yes | |
6e866b33 MB |
44 | SystemCallArchitectures=native |
45 | SystemCallErrorNumber=EPERM | |
46 | SystemCallFilter=@system-service | |
47 | Type=notify | |
48 | User=systemd-resolve | |
49 | WatchdogSec=3min | |
60f067b4 JS |
50 | |
51 | [Install] | |
52 | WantedBy=multi-user.target | |
2897b343 | 53 | Alias=dbus-org.freedesktop.resolve1.service |