dbuspolicy1_check_out/in: enable policy check for signal 46/154246/1
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 10 Oct 2017 02:08:55 +0000 (11:08 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 10 Oct 2017 02:09:03 +0000 (11:09 +0900)
Change-Id: I241f69bc5657ab904d2bf5eaba006188e53cb9aa
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/libdbuspolicy1.c

index 76874ef..3319b7c 100755 (executable)
@@ -401,7 +401,7 @@ DBUSPOLICY1_EXPORT int dbuspolicy1_check_out(void* configuration,
 
        /* Broadcast signal has NULL destination */
        /* Due to this sender can not check rule correctly */
-       if (message_type == DBUSPOLICY_MESSAGE_TYPE_SIGNAL)
+       if (message_type == DBUSPOLICY_MESSAGE_TYPE_SIGNAL && !destination)
                return 1;
 
        __internal_enter();
@@ -490,9 +490,6 @@ DBUSPOLICY1_EXPORT int dbuspolicy1_check_in(void* configuration,
                .empty_names = true
        };
 
-       if (message_type == DBUSPOLICY_MESSAGE_TYPE_SIGNAL)
-               return 1;
-
        __internal_enter();
 
        if (destination && *destination) {