Bug 264843 - hidraw(4) lacks support for USB_GET_DEVICEINFO
Summary: hidraw(4) lacks support for USB_GET_DEVICEINFO
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Vladimir Kondratyev
Depends on:
Reported: 2022-06-23 10:51 UTC by Michael Gmelin
Modified: 2022-06-23 10:51 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gmelin freebsd_committer 2022-06-23 10:51:02 UTC
In https://cgit.freebsd.org/src/commit/sys/dev/usb/input/uhid.c?id=c77bfaa75051254e1d uhid(4) gained support for ioctl from USB_GET_DEVICEINFO. This is used in libraries like libfido2 to retrieve information about a device. Even though some of this information can be retrieved using hidraw(4), some values like retrieving vendor and product name in distinct fields isn't possible. It also breaks compatibility with uhid(4).

I looked at the code, but realized that whatever I would try doing myself would be hacky, therefore I'm opening this PR to either have somebody implement it or give some advise how to approach it best.