chiark / gitweb /
bus-proxy: drop priviliges if we can
[elogind.git] / units / systemd-networkd.service.in
index c12f3983ea3bdeb41020522cfcfa407238cc602e..a928999205ddd356726e4675bd3d51328c268658 100644 (file)
@@ -9,6 +9,7 @@
 Description=Network Service
 Documentation=man:systemd-networkd.service(8)
 DefaultDependencies=no
+After=dbus.service
 Before=network.target
 Wants=network.target
 ConditionCapability=CAP_NET_ADMIN
@@ -18,4 +19,11 @@ 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
+ReadOnlySystem=yes
+ProtectedHome=yes
 WatchdogSec=1min
+
+[Install]
+Also=systemd-networkd-wait-online.service
+WantedBy=multi-user.target