summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/rtnl.c1
-rwxr-xr-xvpn/vpn-dbus.conf30
2 files changed, 17 insertions, 14 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 35ae0a96..ac29f313 100755
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -159,6 +159,7 @@ static void read_uevent(struct interface_data *interface)
if (__connman_rtnl_is_cellular_device(name)) {
interface->service_type = CONNMAN_SERVICE_TYPE_CELLULAR;
interface->device_type = CONNMAN_DEVICE_TYPE_CELLULAR;
+ g_free(name);
return;
}
#endif
diff --git a/vpn/vpn-dbus.conf b/vpn/vpn-dbus.conf
index 7b7b6d19..8ebfc6b6 100755
--- a/vpn/vpn-dbus.conf
+++ b/vpn/vpn-dbus.conf
@@ -1,20 +1,22 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
- <policy user="root">
- <allow own="net.connman.vpn"/>
- <allow send_destination="net.connman.vpn"/>
+ <policy user="root">
+ <allow own="net.connman.vpn"/>
+ <allow send_destination="net.connman.vpn"/>
<allow send_interface="net.connman.vpn.Agent"/>
- </policy>
- <policy user="network_fw">
- <allow own="net.connman.vpn"/>
- <allow send_destination="net.connman.vpn"/>
+ </policy>
+ <policy user="network_fw">
+ <allow own="net.connman.vpn"/>
+ <allow send_destination="net.connman.vpn"/>
<allow send_interface="net.connman.vpn.Agent"/>
- </policy>
- <policy at_console="true">
- <allow send_destination="net.connman.vpn"/>
- </policy>
- <policy context="default">
- <deny send_destination="net.connman.vpn"/>
- </policy>
+ </policy>
+ <policy at_console="true">
+ <allow send_destination="net.connman.vpn"/>
+ </policy>
+ <policy context="default">
+ <deny own="net.connman.vpn"/>
+ <deny send_destination="net.connman.vpn"/>
+ <deny send_interface="net.connman.vpn.Agent"/>
+ </policy>
</busconfig>