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