summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-13 14:30:05 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-13 14:30:05 +0100
commit93391a8badc671f7d1a163b4b338bc030c390cb7 (patch)
tree49be87c65e05b3e7c001b76ae8dd83d408c113d7
parent6813a2fe4e6da3fba8b1bddd34602f058df41564 (diff)
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
-rw-r--r--units/systemd-networkd.socket1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-networkd.socket b/units/systemd-networkd.socket
index d15ee9ed83..8cd7bab67a 100644
--- a/units/systemd-networkd.socket
+++ b/units/systemd-networkd.socket
@@ -8,6 +8,7 @@
[Unit]
Description=networkd rtnetlink socket
Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
+ConditionCapability=CAP_NET_ADMIN
DefaultDependencies=no
Before=sockets.target