chiark / gitweb /
bus-proxy: drop priviliges if we can
[elogind.git] / units / systemd-networkd.service.in
index 850193b53c7012c37d0d4aa8598578e63b1d64fa..a928999205ddd356726e4675bd3d51328c268658 100644 (file)
@@ -9,7 +9,7 @@
 Description=Network Service
 Documentation=man:systemd-networkd.service(8)
 DefaultDependencies=no
-After=dbus.socket
+After=dbus.service
 Before=network.target
 Wants=network.target
 ConditionCapability=CAP_NET_ADMIN
@@ -19,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