I am doing some research on Udev rules for USBs. Most articles I found are centered around blocking USB devices on Ubuntu using Udev. Can accomplish firewall like functionality by writing Udev rules? eg: 1. Allow data copy into the USB while blocking USB contents be executed on the computer? 2. Restrict USB connected smartphones to be charged only, while prohibiting any data transfer either directions. 3. Allowing USB connected smartphones to be charged only, while prohibiting USB cameras, USB soundcards etc..
Thanks in advance,
noexec
andnodev
mount
options. 2.udev
recognize "smartphones" but don'tmount
them.udev
recognize "the USB" andmount
it with the options above. 3.udev
recognize "USB cameras, USB soundcards etc" and do nothing with them. Readman mount
and as many of themount.*
man
pages as you need.