]>
Commit | Line | Data |
---|---|---|
ee9b9875 TG |
1 | # This file is part of systemd. |
2 | # | |
3 | # systemd is free software; you can redistribute it and/or modify it | |
4 | # under the terms of the GNU Lesser General Public License as published by | |
5 | # the Free Software Foundation; either version 2.1 of the License, or | |
6 | # (at your option) any later version. | |
ee9b9875 | 7 | |
091a364c TG |
8 | [Unit] |
9 | Description=Network Name Resolution | |
10 | Documentation=man:systemd-resolved.service(8) | |
16a5d412 DR |
11 | Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved |
12 | Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers | |
13 | Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients | |
1dff3202 | 14 | After=systemd-networkd.service network.target |
3e060555 YW |
15 | Before=network-online.target nss-lookup.target |
16 | Wants=nss-lookup.target | |
091a364c TG |
17 | |
18 | [Service] | |
19 | Type=notify | |
20 | Restart=always | |
21 | RestartSec=0 | |
635f3df5 | 22 | ExecStart=!!@rootlibexecdir@/systemd-resolved |
0c28d51a | 23 | WatchdogSec=3min |
635f3df5 LP |
24 | User=systemd-resolve |
25 | CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE | |
26 | AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE | |
0c28d51a LP |
27 | PrivateTmp=yes |
28 | PrivateDevices=yes | |
c7fb922d | 29 | ProtectSystem=strict |
1b8689f9 | 30 | ProtectHome=yes |
0c28d51a LP |
31 | ProtectControlGroups=yes |
32 | ProtectKernelTunables=yes | |
b6c7278c | 33 | ProtectKernelModules=yes |
40652ca4 | 34 | MemoryDenyWriteExecute=yes |
0c28d51a LP |
35 | RestrictRealtime=yes |
36 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 | |
6489ccfe | 37 | SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap |
7f396e5f | 38 | SystemCallArchitectures=native |
bff8f254 | 39 | LockPersonality=yes |
635f3df5 LP |
40 | RuntimeDirectory=systemd/resolve |
41 | RuntimeDirectoryPreserve=yes | |
091a364c TG |
42 | |
43 | [Install] | |
44 | WantedBy=multi-user.target | |
4d1f490c | 45 | Alias=dbus-org.freedesktop.resolve1.service |