gdt: Kangaroo road sign (Default)
Glen Turner ([personal profile] gdt) wrote2020-11-13 10:36 pm
Entry tags:

Blocking a USB device

udev can be used to block a USB device (or even an entire class of devices, such as USB storage). Add a file /etc/udev/rules.d/99-local-blacklist.rules containing:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0123", ATTRS{idProduct}=="4567", ATTR{authorized}="0"