bus check privilege : ignore dropping message about signal message when sender's... 17/77017/1 accepted/tizen/ivi/20160629.020919 accepted/tizen/mobile/20160629.020950 accepted/tizen/tv/20160629.020932 accepted/tizen/wearable/20160629.020939 submit/tizen/20160628.090030
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 28 Jun 2016 08:57:12 +0000 (17:57 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Tue, 28 Jun 2016 08:57:52 +0000 (17:57 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ibbb6b63f3efecf450ea2c34fcd87477ceb1bcc2c

bus/check.c

index 0d5994e..33ef186 100644 (file)
@@ -283,7 +283,8 @@ bus_check_privilege (BusCheck *check,
 
   if (!dbus_connection_get_is_connected(connection))
     {
-      return BUS_RESULT_FALSE;
+      if (dbus_message_get_type(message) != DBUS_MESSAGE_TYPE_SIGNAL) /* If message type is signal, ignore dropping message. */
+          return BUS_RESULT_FALSE;
     }
 
 #ifdef DBUS_ENABLE_EMBEDDED_TESTS