]>
Commit | Line | Data |
---|---|---|
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. | |
7 | ||
8 | [Unit] | |
9 | Description=Network Name Resolution | |
10 | Documentation=man:systemd-resolved.service(8) | |
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 | |
14 | After=systemd-networkd.service network.target | |
15 | Before=network-online.target nss-lookup.target | |
16 | Wants=nss-lookup.target | |
17 | ||
18 | [Service] | |
19 | Type=notify | |
20 | Restart=always | |
21 | RestartSec=0 | |
22 | ExecStart=@rootlibexecdir@/systemd-resolved | |
23 | WatchdogSec=3min | |
24 | CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_NET_RAW CAP_NET_BIND_SERVICE | |
25 | PrivateTmp=yes | |
26 | PrivateDevices=yes | |
27 | ProtectSystem=strict | |
28 | ProtectHome=yes | |
29 | ProtectControlGroups=yes | |
30 | ProtectKernelTunables=yes | |
31 | ProtectKernelModules=yes | |
32 | MemoryDenyWriteExecute=yes | |
33 | RestrictRealtime=yes | |
34 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 | |
35 | SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap | |
36 | SystemCallArchitectures=native | |
37 | ReadWritePaths=/run/systemd | |
38 | ||
39 | [Install] | |
40 | WantedBy=multi-user.target | |
41 | Alias=dbus-org.freedesktop.resolve1.service |