From 9fb5f6e12006351f12aa0cb33337a0630457a358 Mon Sep 17 00:00:00 2001 From: seungku kim Date: Thu, 2 Jul 2015 13:27:11 +0900 Subject: [PATCH] Disable privilege check temporally Change-Id: I750459ba39cf1f1a5014cb005ee6e756c2e25e13 --- bt-service/bt-request-handler.c | 2 ++ bt-service/bt-service-main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bt-service/bt-request-handler.c b/bt-service/bt-request-handler.c index 069ec2c..f7a328a 100644 --- a/bt-service/bt-request-handler.c +++ b/bt-service/bt-request-handler.c @@ -186,8 +186,10 @@ static void __bt_service_method(GDBusConnection *connection, 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 diff --git a/bt-service/bt-service-main.c b/bt-service/bt-service-main.c index e8c7d90..8f6cc8d 100644 --- a/bt-service/bt-service-main.c +++ b/bt-service/bt-service-main.c @@ -237,11 +237,13 @@ int main(void) return EXIT_FAILURE; } /* TODO: The below privilege check doesn't work properly. It should be resolved later. */ +#if 0 #ifndef TIZEN_WEARABLE if (perm_app_set_privilege("bluetooth-frwk-service", NULL, NULL) != PC_OPERATION_SUCCESS) BT_ERR("Failed to set app privilege"); #endif +#endif /* Event reciever Init */ if (_bt_init_service_event_receiver() != BLUETOOTH_ERROR_NONE) { BT_ERR("Fail to init event reciever"); -- 2.7.4