From d033ee4f9e72f518a6f17e75ac56f44db890dec2 Mon Sep 17 00:00:00 2001 From: "sanghyeok.oh" Date: Tue, 10 Oct 2017 11:08:55 +0900 Subject: [PATCH] dbuspolicy1_check_out/in: enable policy check for signal Change-Id: I241f69bc5657ab904d2bf5eaba006188e53cb9aa Signed-off-by: sanghyeok.oh --- src/libdbuspolicy1.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libdbuspolicy1.c b/src/libdbuspolicy1.c index 76874ef..3319b7c 100755 --- a/src/libdbuspolicy1.c +++ b/src/libdbuspolicy1.c @@ -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) { -- 2.7.4