Modify the privilege level of OOB data getter APIs 33/200333/1 accepted/tizen/unified/20190312.113015 submit/tizen/20190311.071331
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 21 Feb 2019 23:24:08 +0000 (08:24 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 21 Feb 2019 23:24:08 +0000 (08:24 +0900)
Application try to bond using oob data without user confirmation.
Because of this, need to give the proper privilege for OOB data
getter APIs

Change-Id: I5fd0083705ac594cbcd307026bf805384318db76
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service-adaptation/services/bt-request-handler.c

index 2bcb912..bffe34d 100644 (file)
@@ -3581,6 +3581,7 @@ gboolean __bt_service_check_privilege(int function_name,
        case BT_CANCEL_DISCOVERY:
        case BT_OOB_ADD_REMOTE_DATA:
        case BT_OOB_REMOVE_REMOTE_DATA:
+       case BT_OOB_READ_LOCAL_DATA:
        case BT_SET_ADVERTISING:
        case BT_SET_CUSTOM_ADVERTISING:
        case BT_SET_ADVERTISING_PARAMETERS:
@@ -3889,7 +3890,6 @@ gboolean __bt_service_check_privilege(int function_name,
        case BT_GET_PROFILE_TRUSTED:
        case BT_GET_SPEAKER_GAIN:
        case BT_SET_SPEAKER_GAIN:
-       case BT_OOB_READ_LOCAL_DATA:
        case BT_RFCOMM_CLIENT_IS_CONNECTED:
        case BT_RFCOMM_IS_UUID_AVAILABLE:
        case BT_GET_ADVERTISING_DATA: