From: injun.yang Date: Fri, 6 Jul 2018 05:16:43 +0000 (+0900) Subject: Check priviledge X-Git-Tag: submit/tizen/20180710.070923~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F183503%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Check priviledge Change-Id: Ic9ef23563166f7ef0041368423a3e14187397a51 Signed-off-by: injun.yang --- diff --git a/bt-service/bt-request-handler.c b/bt-service/bt-request-handler.c index 5df003c..bac10a3 100644 --- a/bt-service/bt-request-handler.c +++ b/bt-service/bt-request-handler.c @@ -2811,6 +2811,7 @@ gboolean __bt_service_check_privilege(int function_name, case BT_GATT_REGISTER_APPLICATION: case BT_GATT_REGISTER_SERVICE: case BT_GATT_SEND_RESPONSE: + case BT_PBAP_CONNECT: case BT_PBAP_DISCONNECT: case BT_PBAP_GET_PHONEBOOK_SIZE: @@ -2818,6 +2819,7 @@ gboolean __bt_service_check_privilege(int function_name, case BT_PBAP_GET_LIST: case BT_PBAP_PULL_VCARD: case BT_PBAP_PHONEBOOK_SEARCH: + case BT_AUDIO_SELECT_ROLE: ret_val = cynara_check(p_cynara, client_creds, client_session, user_creds, BT_PRIVILEGE_PUBLIC); @@ -2852,6 +2854,7 @@ gboolean __bt_service_check_privilege(int function_name, case BT_REMOVE_WHITE_LIST: case BT_CLEAR_WHITE_LIST: case BT_SET_MANUFACTURER_DATA: + case BT_SET_PASSKEY_NOTIFICATION: case BT_SET_PROFILE_RESTRICTED: case BT_CANCEL_SEARCH_SERVICE: @@ -2860,14 +2863,25 @@ gboolean __bt_service_check_privilege(int function_name, case BT_RFCOMM_ACCEPT_CONNECTION: case BT_RFCOMM_REJECT_CONNECTION: case BT_RFCOMM_LISTEN: + case BT_RFCOMM_CREATE_SOCKET_EX: + case BT_RFCOMM_REMOVE_SOCKET_EX: + + case BT_HID_ENABLE_BARCODE_FEATURE: case BT_AVRCP_CONTROL_GET_PROPERTY: case BT_AVRCP_GET_TRACK_INFO: + case BT_AVRCP_TRANSPORT_SET_PROPERTY: + case BT_SET_CONTENT_PROTECT: case BT_BOND_DEVICE_BY_TYPE: case BT_SET_LE_PRIVACY: + case BT_SET_LE_STATIC_RANDOM_ADDRESS: case BT_LE_CONN_UPDATE: + case BT_UPDATE_LE_CONNECTION_MODE: + case BT_REQ_ATT_MTU: + case BT_GET_DEVICE_IDA: + case BT_ENABLE_FORCE_HCI_DUMP: case BT_LE_READ_MAXIMUM_DATA_LENGTH: case BT_LE_WRITE_HOST_SUGGESTED_DATA_LENGTH: case BT_LE_READ_HOST_SUGGESTED_DATA_LENGTH: @@ -2906,9 +2920,15 @@ gboolean __bt_service_check_privilege(int function_name, case BT_IS_LE_DISCOVERYING: case BT_IS_CONNECTABLE: case BT_GET_BONDED_DEVICES: + case BT_GET_PROFILE_CONNECTED_DEVICES: case BT_GET_BONDED_DEVICE: + case BT_PASSKEY_REPLY: + case BT_PASSKEY_CONFIRMATION_REPLY: case BT_GET_IS_ALIAS_SET: case BT_IS_DEVICE_CONNECTED: + case BT_GET_CONNECTED_LINK_TYPE: + case BT_SET_PROFILE_TRUSTED: + case BT_GET_PROFILE_TRUSTED: case BT_GET_SPEAKER_GAIN: case BT_SET_SPEAKER_GAIN: case BT_OOB_READ_LOCAL_DATA: @@ -2917,10 +2937,16 @@ gboolean __bt_service_check_privilege(int function_name, case BT_GET_ADVERTISING_DATA: case BT_GET_SCAN_RESPONSE_DATA: case BT_IS_ADVERTISING: + case BT_REGISTER_SCAN_FILTER: + case BT_UNREGISTER_SCAN_FILTER: + case BT_UNREGISTER_ALL_SCAN_FILTERS: + case BT_IS_SCAN_FILTER_SUPPORTED: case BT_GET_PROFILE_RESTRICTED: case BT_OBEX_SERVER_ALLOCATE: case BT_OBEX_SERVER_DEALLOCATE: + case BT_OBEX_SERVER_IS_ACTIVATED: + case BT_OPP_GET_TRANSFER_PROGRESS: /* Non-privilege control */ break; default: