Date: Sat, 27 Jun 2020 13:31:29 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247588] Bluetooth HCI unprivileged socket has no LE access Message-ID: <bug-247588-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: greg@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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247588-227>
