X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-networkd.service.in;h=fab278e92c6699e6d532a6dcc2461400a8a6cee0;hb=374c22b351e43ce4ef70ef0ad1bd1e4e520f9a28;hp=ca40691f5e946a2a23a4e1a7ee9b8e38507cdeaf;hpb=c4a0b20c7a3043a6691ca23d4a1a7c15b5082a03;p=elogind.git diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index ca40691f5..fab278e92 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,18 +8,25 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -After=dbus.service -Before=network.target +# dbus.service can be dropped once on kdbus, and systemd-udevd.service can be +# dropped once tuntap is moved to netlink +After=systemd-udevd.service 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] WantedBy=multi-user.target +Also=systemd-networkd.socket