Fix dbus proxy creation code 93/183193/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 3 Jul 2018 08:22:34 +0000 (17:22 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 3 Jul 2018 08:22:34 +0000 (17:22 +0900)
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 <jeremy.jang@samsung.com>
plugin/app2sd/lib/app2sd_client_interface.c

index 4d5efad..5586f41 100644 (file)
@@ -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);