Disable privilege check temporally 42/42742/1
authorseungku kim <seungku.kim@samsung.com>
Thu, 2 Jul 2015 04:27:11 +0000 (13:27 +0900)
committerseungku kim <seungku.kim@samsung.com>
Thu, 2 Jul 2015 04:27:11 +0000 (13:27 +0900)
Change-Id: I750459ba39cf1f1a5014cb005ee6e756c2e25e13

bt-service/bt-request-handler.c
bt-service/bt-service-main.c

index 069ec2c..f7a328a 100644 (file)
@@ -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
index e8c7d90..8f6cc8d 100644 (file)
@@ -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");