Skip to content

USB: core: add a way to revoke access to open USB devices

Bastien Nocera bpf linux-usb llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 31 repliesIn review

Changes since v2 from the cover letter

- Changed the internal API to pass a struct usb_device
- Fixed potential busy loop in user-space when revoking access to a device

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2USB: core: add a way to revoke access to open USB devicesdrivers/usb/core/devio.c drivers/usb/core/usb.h+77 -413 replies
2/2usb: Implement usb_revoke() BPF functiondrivers/usb/core/usb.c+51 -014 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] USB: core: add a way to revoke access to open USB devices

BPF list, first CC: here, I hope the commit messages are clear enough to understand the purpose of the patchset. If not, your comments would be greatly appreciated so I can make the commit messages self-explanatory.

Eric, what would be the right identifier to use for a specific user namespace that userspace could find out? I know the PIDs of the bubblewrap processes that created those user namespaces, would those be good enough?

Changes since v2:
- Changed the internal API to pass a struct usb_device
- Fixed potential busy loop in user-space when revoking access to a device

Bastien Nocera (2):
USB: core: add a way to revoke access to open USB devices
usb: Implement usb_revoke() BPF function

 drivers/usb/core/devio.c | 79 ++++++++++++++++++++++++++++++++++++++--
 drivers/usb/core/usb.c   | 51 ++++++++++++++++++++++++++
 drivers/usb/core/usb.h   |  2 +
 3 files changed, 128 insertions(+), 4 deletions(-)
Signature · 1 line
2.37.1