chiark / gitweb /
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 13:30:05 +0000 (14:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 13:30:05 +0000 (14:30 +0100)
units/systemd-networkd.socket

index d15ee9e..8cd7bab 100644 (file)
@@ -8,6 +8,7 @@
 [Unit]
 Description=networkd rtnetlink socket
 Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
 [Unit]
 Description=networkd rtnetlink socket
 Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
+ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
 Before=sockets.target
 
 DefaultDependencies=no
 Before=sockets.target