X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-networkd.service.in;h=f33c65e6ff07e433a3c81cddfc02183c3e630ba6;hp=ca40691f5e946a2a23a4e1a7ee9b8e38507cdeaf;hb=689d781b87164bc89554e2fecdf6fbb5725c0804;hpb=c4a0b20c7a3043a6691ca23d4a1a7c15b5082a03 diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index ca40691f5..f33c65e6f 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,17 +8,21 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -After=dbus.service -Before=network.target +After=dbus.service network-pre.target systemd-sysusers.service +Before=network.target multi-user.target shutdown.target +Conflicts=shutdown.target Wants=network.target -ConditionCapability=CAP_NET_ADMIN [Service] Type=notify Restart=always RestartSec=0 ExecStart=@rootlibexecdir@/systemd-networkd +CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER +ProtectSystem=full +ProtectHome=yes WatchdogSec=1min [Install]