]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Add CAP_NET_ADMIN condition to systemd-networkd-wait-online@.service as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 7 May 2023 08:49:57 +0000 (10:49 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 May 2023 15:59:55 +0000 (17:59 +0200)
It was added to CAP_NET_ADMIN but we forgot to add it to the template
service as well.

units/systemd-networkd-wait-online@.service.in

index 2fae26d1c0cef483fd7d995ac7a01c163cd16a3f..b7a1e409f4439c827dcea4725e8b052631d2dc18 100644 (file)
@@ -10,6 +10,7 @@
 [Unit]
 Description=Wait for Network Interface %i to be Configured
 Documentation=man:systemd-networkd-wait-online.service(8)
+ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
 Conflicts=shutdown.target
 BindsTo=systemd-networkd.service