dbuspolicy1_check_out: enable receive_sender rule 45/154245/1
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 10 Oct 2017 02:07:25 +0000 (11:07 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Tue, 10 Oct 2017 02:07:33 +0000 (11:07 +0900)
Change-Id: I48ad1e77353424c73371ded14e671fef499782e4
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/libdbuspolicy1.c

index 4d7e0e2..76874ef 100755 (executable)
@@ -403,7 +403,6 @@ DBUSPOLICY1_EXPORT int dbuspolicy1_check_out(void* configuration,
        /* Due to this sender can not check rule correctly */
        if (message_type == DBUSPOLICY_MESSAGE_TYPE_SIGNAL)
                return 1;
-       sender = NULL;
 
        __internal_enter();
 
@@ -444,13 +443,11 @@ DBUSPOLICY1_EXPORT int dbuspolicy1_check_out(void* configuration,
 
        /* check can recv */
        /* get sender information from kdbus */
-       if (sender) {
        r = kdbus_get_conn_info(bus_type, sender, message_type, &info);
        if (r < 0) {
                fprintf(stderr, "failed to kdbus conn info:%d\n", r);
                goto end;
        }
-       }
 
        if (info.empty_names)
                r = __internal_can_recv(bus_type, dest_uid_n, dest_gid_n, dest_label, sender, path, interface, member, message_type);