Bluetooth HID device shows permission denied.

121 views
Skip to first unread message

H.S.T None

unread,
Jan 21, 2021, 8:09:06 AM1/21/21
to Chromium OS Development
Hi,

I had post same issue in WebHID issue.

System log as below:
2021-01-20T07:57:43.811441Z INFO kernel: [ 42.922193] input: BT5.1 Mouse Mouse as /devices/virtual/misc/uhid/0005:3938:1236.0005/input/input13
2021-01-20T07:57:43.811552Z INFO kernel: [ 42.922616] input: BT5.1 Mouse as /devices/virtual/misc/uhid/0005:3938:1236.0005/input/input14
2021-01-20T07:57:43.812417Z INFO kernel: [ 42.922926] hid-generic 0005:3938:1236.0005: input,hidraw3: BLUETOOTH HID v0.02 Mouse [BT5.1 Mouse] on 30:c9🆎d9:42:86
2021-01-20T07:57:54.512424Z DEBUG kernel: [ 53.617684] gpio gpiochip0: Persistence not supported for GPIO 150
2021-01-20T07:57:54.512478Z DEBUG kernel: [ 53.617693] gpio gpiochip0: registered chardev handle for line 150
2021-01-20T07:57:54.512485Z DEBUG kernel: [ 53.617701] gpio gpiochip0: registered chardev handle for 1 lines
2021-01-20T07:58:03.314881Z INFO kernel: [ 62.415193] PDLOG 2021/01/20 07:56:56.925 P0 Disconnected
2021-01-20T07:58:10.224641Z NOTICE temp_logger[7243]: 00:36C 01:34C 02:33C 03:34C 04:36C 05:34C 06:35C 07:31C 08:27C 09:28C
2021-01-20T07:58:12.717531Z INFO kernel: [ 71.813082] binder_alloc: 5439: binder_alloc_buf size 1056768 failed, no address space
2021-01-20T07:58:12.717664Z INFO kernel: [ 71.813100] binder_alloc: allocated: 3104 (num: 13 largest: 2320), free: 1037280 (num: 3 largest: 1037232)
2021-01-20T07:58:12.717677Z INFO kernel: [ 71.813109] binder: 5644:7250 transaction failed 29201/-28, size 1056768-0 line 3152
2021-01-20T07:58:18.357481Z INFO chrome[1607]: 2021-01-20T07:58:18.356424Z INFO chrome[1607:1639]: [rlz_lib.cc(463)] Attempting to send RLZ ping brand=UBRP

2021-01-20T07:58:18.576613Z INFO chrome[1607]: 2021-01-20T07:58:18.576155Z INFO chrome[1607:1639]: [rlz_lib.cc(488)] Succeeded in sending RLZ ping2021-01-20T07:59:06.361192Z INFO permission_broker[1855]: ProcessPath(/dev/hidraw3)
2021-01-20T07:59:06.753967Z INFO permission_broker[1855]: AllowUsbDeviceRule: IGNORE
2021-01-20T07:59:06.754260Z INFO permission_broker[1855]: AllowTtyDeviceRule: IGNORE
2021-01-20T07:59:06.754402Z INFO permission_broker[1855]: DenyClaimedUsbDeviceRule: IGNORE
2021-01-20T07:59:06.754500Z INFO permission_broker[1855]: DenyUninitializedDeviceRule: IGNORE
2021-01-20T07:59:06.754606Z INFO permission_broker[1855]: DenyUsbDeviceClassRule: IGNORE
2021-01-20T07:59:06.754710Z INFO permission_broker[1855]: DenyUsbVendorIdRule: IGNORE
2021-01-20T07:59:06.754813Z INFO permission_broker[1855]: AllowHidrawDeviceRule: ALLOW
2021-01-20T07:59:06.754939Z INFO permission_broker[1855]: AllowGroupTtyDeviceRule: IGNORE
2021-01-20T07:59:06.755057Z INFO permission_broker[1855]: DenyGroupTtyDeviceRule: IGNORE
2021-01-20T07:59:06.755251Z INFO permission_broker[1855]: message repeated 2 times: [ DenyGroupTtyDeviceRule: IGNORE]
2021-01-20T07:59:07.074555Z INFO permission_broker[1855]: DenyClaimedHidrawDeviceRule: DENY
2021-01-20T07:59:07.074995Z INFO permission_broker[1855]: Verdict for /dev/hidraw3: DENY
2021-01-20T07:59:07.075263Z ERR permission_broker[1855]: OpenPathImpl(...): Domain=permission_broker, Code=permission_denied, Message=Permission to open '/dev/hidraw3' denied


The "BT5.1 Mouse Mouse" is BT mouse and it can work on Chrome OS.
"BT5.1 Mouse" has customized HID report, I want to communicate with it.
"BT5.1 Mouse Mouse" and "BT5.1 Mouse" are in the same physical device.

It looks like my device was denied by permission broker?
How can I solve this problem? (Attachment contains full system log and device log)

Thanks.

Archive.zip

Reilly Grant

unread,
Jan 21, 2021, 2:40:14 PM1/21/21
to H.S.T None, mattre...@chromium.org, Chromium OS Development
+mattr...@chromium.org, I think we will follow up on the issue you've already filed.
Reilly Grant | Software Engineer | rei...@chromium.org | Google Chrome


--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev

Matt Reynolds

unread,
Jan 21, 2021, 4:04:00 PM1/21/21
to Chromium OS Development, rei...@chromium.org, Chromium OS Development, hstn...@gmail.com, mattre...@chromium.org
Yes, I just replied to the issue filed on the spec tracker:

https://github.com/WICG/webhid/issues/52#issuecomment-764889879

Unfortunately I don't think WebHID can be used with your device since it exposes mouse inputs. Some devices get around this by creating multiple HID interfaces so that sensitive functionality (mouse & keyboard input) is provided by separate interfaces than the vendor's proprietary functionality.

- Matt
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages