]>
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 |
cabc1c6d | 31 | ProtectClock=yes |
0c28d51a | 32 | ProtectControlGroups=yes |
3ca9940c | 33 | ProtectHome=yes |
b6c7278c | 34 | ProtectKernelModules=yes |
3ca9940c | 35 | ProtectKernelTunables=yes |
6168ae58 | 36 | ProtectKernelLogs=yes |
3ca9940c LP |
37 | ProtectSystem=strict |
38 | Restart=always | |
39 | RestartSec=0 | |
0c28d51a | 40 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 |
3ca9940c LP |
41 | RestrictNamespaces=yes |
42 | RestrictRealtime=yes | |
62aa2924 | 43 | RestrictSUIDSGID=yes |
635f3df5 LP |
44 | RuntimeDirectory=systemd/resolve |
45 | RuntimeDirectoryPreserve=yes | |
3ca9940c LP |
46 | SystemCallArchitectures=native |
47 | SystemCallErrorNumber=EPERM | |
48 | SystemCallFilter=@system-service | |
49 | Type=notify | |
50 | User=systemd-resolve | |
21d0dd5a | 51 | @SERVICE_WATCHDOG@ |
091a364c TG |
52 | |
53 | [Install] | |
54 | WantedBy=multi-user.target | |
4d1f490c | 55 | Alias=dbus-org.freedesktop.resolve1.service |