diff options
| author | ShengYi Hung <aokblast@FreeBSD.org> | 2025-08-11 15:05:24 +0000 |
|---|---|---|
| committer | ShengYi Hung <aokblast@FreeBSD.org> | 2026-08-14 15:09:08 +0000 |
| commit | 749318f2ae56127abdffee405f8f4658efa1c807 (patch) | |
| tree | 80bb5ab20c4e173c8b0ca06169705e5b4f5a08d0 /unittests/Driver/(public-mirror) | |
| parent | 7144a1d58c5cfa1dcfd1a172965d73289616569c (diff) | |
FreeBSD's libusb has three components: libusb01, libusb10, and libusb20.
libusb20 handles communication with character devices. We now requires a
backend context for libusb20. The backend context contains contains the
capsicumized usbctrl fd and usb directory (/dev/usb) fd so that the
library user can enter the capiblity mode safely while using libusb.
libusb10 is updated to support capabilities via a context option. Since
libusb allows general read/write access, we preserve all possible
capabilities when passing backend context to libusb20. It is the
responsibility of the libusb user to call cap_enter() at an appropriate
time.
All base system tools using libusb and libusb20 have been updated to
support Capsicum.
Reviewed by: adrian, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51865
Diffstat (limited to 'unittests/Driver/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
