summaryrefslogtreecommitdiff
path: root/src/connman.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/connman.service.in')
-rw-r--r--src/connman.service.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/connman.service.in b/src/connman.service.in
index ba4dedd7..9f5c10fe 100644
--- a/src/connman.service.in
+++ b/src/connman.service.in
@@ -1,9 +1,11 @@
[Unit]
Description=Connection service
-Requires=dbus.socket
-After=dbus.socket
-Before=remote-fs-pre.target
-Wants=remote-fs-pre.target
+DefaultDependencies=false
+Conflicts=shutdown.target
+RequiresMountsFor=@localstatedir@/lib/connman
+After=dbus.service network-pre.target systemd-sysusers.service
+Before=network.target multi-user.target shutdown.target
+Wants=network.target
[Service]
Type=dbus
@@ -11,6 +13,9 @@ BusName=net.connman
Restart=on-failure
ExecStart=@sbindir@/connmand -n
StandardOutput=null
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SYS_TIME CAP_SYS_MODULE
+ProtectHome=true
+ProtectSystem=full
[Install]
WantedBy=multi-user.target