From: Sangyoon Jang Date: Tue, 3 Jul 2018 08:22:34 +0000 (+0900) Subject: Fix dbus proxy creation code X-Git-Tag: accepted/tizen/unified/20180705.081218~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9feb059900a020aa3d5de42d38866a40dfd5f910;p=platform%2Fcore%2Fappfw%2Fapp2sd.git Fix dbus proxy creation code Add G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag. app2sd-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: Idbce104f86fb6f6067d314a4c7784b487b9235d6 Signed-off-by: Sangyoon Jang --- diff --git a/plugin/app2sd/lib/app2sd_client_interface.c b/plugin/app2sd/lib/app2sd_client_interface.c index 4d5efad..5586f41 100644 --- a/plugin/app2sd/lib/app2sd_client_interface.c +++ b/plugin/app2sd/lib/app2sd_client_interface.c @@ -79,7 +79,7 @@ static int __app2sd_call_server_method(const gchar *method_name, /* method call */ do { proxy = g_dbus_proxy_new_sync(conn, - G_DBUS_PROXY_FLAGS_NONE, NULL, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL, APP2SD_BUS_NAME, APP2SD_OBJECT_PATH, APP2SD_INTERFACE_NAME, NULL, &error);