[network-manager-applet] editor: change flags of firewalld proxy to prevent polkit request
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] editor: change flags of firewalld proxy to prevent polkit request
- Date: Tue, 7 Feb 2017 15:27:25 +0000 (UTC)
commit d898ecf9a958a1c3421b9ee79c50957044cbbcb2
Author: Beniamino Galvani <bgalvani redhat com>
Date: Thu Feb 2 11:14:10 2017 +0100
editor: change flags of firewalld proxy to prevent polkit request
Even if the org.fedoraproject.FirewallD1.zone interface of
/org/fedoraproject/FirewallD1 does not have any property, creating the
proxy without G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES triggers a
call to GetAll on the interface, which requires polkit
authorization. Do not try to load properties on proxy creation.
https://bugzilla.redhat.com/show_bug.cgi?id=1409431
src/connection-editor/page-general.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/page-general.c b/src/connection-editor/page-general.c
index d417d13..6eb55ad 100644
--- a/src/connection-editor/page-general.c
+++ b/src/connection-editor/page-general.c
@@ -146,7 +146,7 @@ general_private_init (CEPageGeneral *self)
/* Get zones from FirewallD */
priv->cancellable = g_cancellable_new ();
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL,
"org.fedoraproject.FirewallD1",
"/org/fedoraproject/FirewallD1",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]