chiark / gitweb /
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
[elogind.git] / units / systemd-networkd.socket
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=networkd rtnetlink socket
10 Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
11 ConditionCapability=CAP_NET_ADMIN
12 DefaultDependencies=no
13 Before=sockets.target
14
15 [Socket]
16 ReceiveBuffer=8M
17 ListenNetlink=route 273
18 PassCredentials=yes
19
20 [Install]
21 WantedBy=sockets.target