From fb747a8d0775e77e0aab2fe0a1bd94fb33b6e603 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 3 Jul 2018 17:28:52 +0900 Subject: [PATCH] Fix dbus proxy creation code Add G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag. pkgmgr-server does not provide object which has properties. Without this flag, g_dbus_proxy_new_sync() will try to load properties using GetAll method, and this call will be denied by default dbus policy. Change-Id: I77248031e93bf30ea386d5e6b4838129cdc2aaa1 Signed-off-by: Sangyoon Jang --- client/src/pkgmgr_client_connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/pkgmgr_client_connection.c b/client/src/pkgmgr_client_connection.c index ff27b4f..6e1f2f2 100644 --- a/client/src/pkgmgr_client_connection.c +++ b/client/src/pkgmgr_client_connection.c @@ -264,7 +264,8 @@ int pkgmgr_client_connection_send_request(struct pkgmgr_client_t *pc, g_variant_ref_sink(params); do { - proxy = g_dbus_proxy_new_sync(pc->conn, G_DBUS_PROXY_FLAGS_NONE, + proxy = g_dbus_proxy_new_sync(pc->conn, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL, PKGMGR_DBUS_SERVICE, PKGMGR_DBUS_OBJECT_PATH, PKGMGR_DBUS_INTERFACE, NULL, &error); -- 2.34.1