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=fe92da21235f14aff3f73a4b888c031d2e79eb9e;hp=95205cdee9914d5a5cba3675ce9d4c3b37a4c0cf;hb=ebf4e8013b2928fdcfa6008ee6559e8c7e1fd60b;hpb=cde93897cdefdd7c7f66c400a61e42ceee5f6a46 diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index 95205cdee..fe92da212 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,8 +8,13 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -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 [Service] @@ -17,4 +22,10 @@ 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