From 4a21eb08dbf3a3589e27ab2f8973795cdad30a9f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 4 Mar 2013 17:38:28 -0600 Subject: [PATCH] libnm-glib: clear and recheck permissions on NM restarts --- libnm-glib/nm-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index 5121457cdf..b42eaecd4a 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -1220,6 +1220,7 @@ proxy_name_owner_changed (DBusGProxy *proxy, poke_wireless_devices_with_rf_status (client); free_devices (client, TRUE); free_active_connections (client, TRUE); + update_permissions (client, NULL); priv->wireless_enabled = FALSE; priv->wireless_hw_enabled = FALSE; priv->wwan_enabled = FALSE; @@ -1236,6 +1237,7 @@ proxy_name_owner_changed (DBusGProxy *proxy, } else { _nm_object_suppress_property_updates (NM_OBJECT (client), FALSE); _nm_object_reload_properties_async (NM_OBJECT (client), updated_properties, client); + client_recheck_permissions (priv->client_proxy, client); } }