Page MenuHomeFreeBSD

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

Authored by wulf on Jul 28 2025, 9:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 8:15 AM
Unknown Object (File)
Sat, Oct 11, 8:15 AM
Unknown Object (File)
Sat, Oct 11, 12:54 AM
Unknown Object (File)
Thu, Oct 2, 8:18 PM
Unknown Object (File)
Thu, Oct 2, 7:15 AM
Unknown Object (File)
Sat, Sep 20, 12:18 AM
Unknown Object (File)
Aug 3 2025, 4:55 AM
Unknown Object (File)
Jul 31 2025, 1:54 PM

Details

Reviewers
emaste
manu
andrew
Summary

While FIDO/U2F keys were already supported by the generic uhid(4) and
hidraw(4) drivers, this driver adds some additional features an does
steps to tighten the security of FIDO/U2F access.

  • It automatically loads through devd.
  • Automatically enables HQ_NO_READAHEAD for FIDO/U2F devices.
  • Implements only miminum set of features.
  • Do not requires external devfs configuration to set character device permissions.
  • Names character device as u2f/# to make possible capsicum or any other pledge()-style sandboxing.

PR: 265528
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65821
Build 62704: arc lint + arc unit