]>
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 | |
1dff3202 | 16 | After=systemd-networkd.service network.target |
3e060555 YW |
17 | Before=network-online.target nss-lookup.target |
18 | Wants=nss-lookup.target | |
091a364c TG |
19 | |
20 | [Service] | |
21 | Type=notify | |
22 | Restart=always | |
23 | RestartSec=0 | |
635f3df5 | 24 | ExecStart=!!@rootlibexecdir@/systemd-resolved |
0c28d51a | 25 | WatchdogSec=3min |
635f3df5 LP |
26 | User=systemd-resolve |
27 | CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE | |
28 | AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE | |
0c28d51a LP |
29 | PrivateTmp=yes |
30 | PrivateDevices=yes | |
c7fb922d | 31 | ProtectSystem=strict |
1b8689f9 | 32 | ProtectHome=yes |
0c28d51a LP |
33 | ProtectControlGroups=yes |
34 | ProtectKernelTunables=yes | |
b6c7278c | 35 | ProtectKernelModules=yes |
40652ca4 | 36 | MemoryDenyWriteExecute=yes |
0c28d51a LP |
37 | RestrictRealtime=yes |
38 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 | |
6489ccfe | 39 | SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap |
7f396e5f | 40 | SystemCallArchitectures=native |
bff8f254 | 41 | LockPersonality=yes |
635f3df5 LP |
42 | RuntimeDirectory=systemd/resolve |
43 | RuntimeDirectoryPreserve=yes | |
091a364c TG |
44 | |
45 | [Install] | |
46 | WantedBy=multi-user.target | |
4d1f490c | 47 | Alias=dbus-org.freedesktop.resolve1.service |