Page MenuHomeFreeBSD

Add u2f(4), a HID driver for FIDO/U2F security keys
Needs RevisionPublic

Authored by wulf on Aug 29 2023, 10:21 PM.
Tags
None
Referenced Files
F118820137: D41639.id126660.diff
Mon, Jun 2, 6:40 AM
Unknown Object (File)
Fri, May 30, 9:48 PM
Unknown Object (File)
Tue, May 27, 5:58 PM
Unknown Object (File)
Tue, May 27, 6:34 AM
Unknown Object (File)
Wed, May 21, 10:35 PM
Unknown Object (File)
Mon, May 5, 1:24 PM
Unknown Object (File)
Apr 24 2025, 12:04 PM
Unknown Object (File)
Apr 15 2025, 7:29 AM

Details

Reviewers
grembo
andrew
manu
Summary

This driver is a stripped-down version of hidraw(4). It implements subset of commands required for FIDO/U2F keys only.

User-visible changes are:
It attaches to FIDO/U2F top level collection. So it can be automagically loaded with devd
It sets 660 root:u2f mode to device node. No need in special devd scripts
It emulates USB_GET_DEVICEINFO ioctl

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wulf requested review of this revision.Aug 29 2023, 10:21 PM
manu requested changes to this revision.Nov 24 2023, 9:31 AM

I guess this review should be splitted in multiple ones.
There is the addition of u2f(4) yes but a lot of stuff is changed in the hid code too.

This revision now requires changes to proceed.Nov 24 2023, 9:31 AM
share/man/man4/u2f.4
90
sys/amd64/conf/GENERIC
397

We need a more descriptive description -- both HIDRAW_MAKE_UHID_ALIAS and U2F_MAKE_UHID_ALIAS have the description # install /dev/uhid alias right now