diff options
-rwxr-xr-x | src/rtnl.c | 1 | ||||
-rwxr-xr-x | vpn/vpn-dbus.conf | 30 |
2 files changed, 17 insertions, 14 deletions
@@ -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> |