I am planning to whitelist USB Device in such a way that initially everything will be denial ALL followed by whitelisting of certain USB.I've written these rules in UDEV but it doesn't seem to work. It just denies everything. Here are the rules:Deny All:ACTION==add, SUBSYSTEMS==usb, RUN+=/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'Allow SanDisk Pendrive:ACTION==add, SUBSYSTEMS==usb,ATTR{manufacturer}==SanDisk, RUN+=/bin/sh -c 'echo 1 >/sys$DEVPATH/authorized'Any help would be appreciated.
White Listing USB's via Udev
udev