[Bug 247588] Bluetooth HCI unprivileged socket has no LE access
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 27 13:31:29 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247588
Bug ID: 247588
Summary: Bluetooth HCI unprivileged socket has no LE access
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: greg at unrelenting.technology
Scanning for Bluetooth Low Energy (BLE) beacons currently requires root access,
which is ehhhh not great.
>From a quick look at the code, looks like setting some bits for allowing LE
commands/events was intended, but no bits are set:
https://github.com/freebsd/freebsd/blob/6266cce175c89b44f06d967f99d32f9a7d16f461/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c#L882-L883
OCF_LE_SET_SCAN_PARAMETERS and OCF_LE_SET_SCAN_ENABLE should definitely be
accessible.. and at least 0x3e (LE meta) events should be readable, I don't see
what in the code would block them but I haven't got them as non-root.
Also, maybe all of this should be controllable via sysctls.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list