From 21b166ea25014c80a938e16395f48f49c8cd1829 Mon Sep 17 00:00:00 2001 From: Taejin Woo Date: Mon, 7 Sep 2015 21:19:17 +0900 Subject: [PATCH] Fix the privilige issue Change-Id: I8e5e0e1d7fa155130991528902b04f03ac933c72 Signed-off-by: Taejin Woo --- bt-service/bt-request-handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bt-service/bt-request-handler.c b/bt-service/bt-request-handler.c index f7a328a..bc37c7e 100644 --- a/bt-service/bt-request-handler.c +++ b/bt-service/bt-request-handler.c @@ -185,11 +185,8 @@ static void __bt_service_method(GDBusConnection *connection, } else if (__bt_service_check_privilege(service_function, service_type, (const char *)sender) == FALSE) { BT_ERR("Client don't have the privilege to excute this function"); - /* TODO: privilege check doesn't work properly. It sometimes reutrns fail. */ -#if 0 result = BLUETOOTH_ERROR_PERMISSION_DEINED; goto fail; -#endif } if (request_type == BT_ASYNC_REQ @@ -1948,6 +1945,7 @@ gboolean __bt_service_check_privilege(int function_name, case BT_OOB_REMOVE_REMOTE_DATA: case BT_SET_ADVERTISING: case BT_SET_CUSTOM_ADVERTISING: + case BT_SET_ADVERTISING_PARAMETERS: case BT_START_LE_DISCOVERY: case BT_STOP_LE_DISCOVERY: -- 2.7.4