Enable the previlege check for public release 61/103261/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 8 Dec 2016 00:55:17 +0000 (09:55 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 8 Dec 2016 00:55:17 +0000 (09:55 +0900)
Change-Id: Ie65f47308f4efd7dd9fd8d0abaa0e177c999a2c7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-request-handler.c

index 528c432..96bd1f6 100644 (file)
@@ -181,15 +181,14 @@ static void __bt_service_method(GDBusConnection *connection,
 
                sender = g_dbus_method_invocation_get_sender(invocation);
 
-               // TODO map - privileges should be checked, just debugging purposes
-               /*if (service_type == BT_CORE_SERVICE) {
+               if (service_type == BT_CORE_SERVICE) {
                        BT_DBG("No need to check privilege from bt-core");
                } 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");
                        result = BLUETOOTH_ERROR_PERMISSION_DEINED;
                        goto fail;
-               }*/
+               }
 
                if (request_type == BT_ASYNC_REQ
                                || service_function == BT_OBEX_SERVER_ACCEPT_CONNECTION) {