summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorhyunuktak <hyunuk.tak@samsung.com>2016-06-09 06:43:58 (GMT)
committerhyunuktak <hyunuk.tak@samsung.com>2016-06-09 06:44:00 (GMT)
commitfe5392acf9111aed0f479a56d6953fbc7c6754da (patch)
treeabe4155d826d2a39ae2749a0d0c433e0721c9be7 /vpn
parent0ea98e0cff37f5a63783a65c84cc5945466b9024 (diff)
downloadconnman-fe5392acf9111aed0f479a56d6953fbc7c6754da.zip
connman-fe5392acf9111aed0f479a56d6953fbc7c6754da.tar.gz
connman-fe5392acf9111aed0f479a56d6953fbc7c6754da.tar.bz2
Remove capability and Change from dbus to systemd for vpn servicerefs/changes/79/73679/1
Change-Id: I7ef5583cfc148b4835abec4bf57ad76369ed9b8e Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Diffstat (limited to 'vpn')
-rwxr-xr-xvpn/connman-vpn.service.in2
-rwxr-xr-xvpn/net.connman.vpn.service.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/vpn/connman-vpn.service.in b/vpn/connman-vpn.service.in
index de65a70..71abb57 100755
--- a/vpn/connman-vpn.service.in
+++ b/vpn/connman-vpn.service.in
@@ -8,6 +8,8 @@ Type=dbus
BusName=net.connman.vpn
ExecStart=@sbindir@/connman-vpnd -n
StandardOutput=null
+CapabilityBoundingSet=~CAP_MAC_ADMIN
+CapabilityBoundingSet=~CAP_MAC_OVERRIDE
[Install]
WantedBy=multi-user.target
diff --git a/vpn/net.connman.vpn.service.in b/vpn/net.connman.vpn.service.in
index 9487201..8dcf254 100755
--- a/vpn/net.connman.vpn.service.in
+++ b/vpn/net.connman.vpn.service.in
@@ -1,4 +1,5 @@
[D-BUS Service]
Name=net.connman.vpn
-Exec=@sbindir@/connman-vpnd -n
+Exec=/bin/false
User=root
+SystemdService=connman-vpn.service