chiark / gitweb /
core: rename ReadOnlySystem= to ProtectSystem= and add a third value for also mountin...
[elogind.git] / units / systemd-networkd.service.in
index 835c07ddcd5aeb838f672e69db81709248b8f6ab..373ac4e0fd1905eea4fa7ed6e531eeaa04b64649 100644 (file)
@@ -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
+ProtectSystem=full
+ProtectHome=yes
 WatchdogSec=1min
+
+[Install]
+Also=systemd-networkd-wait-online.service
+WantedBy=multi-user.target