]>
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 |
62fb7e80 | 17 | After=systemd-sysusers.service 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] | |
635f3df5 | 23 | AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE |
3ca9940c LP |
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 | |
0c28d51a | 29 | PrivateDevices=yes |
3ca9940c | 30 | PrivateTmp=yes |
0c28d51a | 31 | ProtectControlGroups=yes |
3ca9940c | 32 | ProtectHome=yes |
99894b86 | 33 | ProtectHostname=yes |
b6c7278c | 34 | ProtectKernelModules=yes |
3ca9940c LP |
35 | ProtectKernelTunables=yes |
36 | ProtectSystem=strict | |
37 | Restart=always | |
38 | RestartSec=0 | |
0c28d51a | 39 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 |
3ca9940c LP |
40 | RestrictNamespaces=yes |
41 | RestrictRealtime=yes | |
635f3df5 LP |
42 | RuntimeDirectory=systemd/resolve |
43 | RuntimeDirectoryPreserve=yes | |
3ca9940c LP |
44 | SystemCallArchitectures=native |
45 | SystemCallErrorNumber=EPERM | |
46 | SystemCallFilter=@system-service | |
47 | Type=notify | |
48 | User=systemd-resolve | |
49 | WatchdogSec=3min | |
091a364c TG |
50 | |
51 | [Install] | |
52 | WantedBy=multi-user.target | |
4d1f490c | 53 | Alias=dbus-org.freedesktop.resolve1.service |