Re: Allow only selected USB

2021-02-12 Thread Toni Mas Soler
Alternatively, if you run udev, you can add new rule. Fixed: /etc/udev/rules.d Volatile: /run/udev/rules.d I believe this example is autoexplained: 8 # Do not use this rule if I'm not a USB 9 SUBSYSTEM!="usb", GOTO="usbgend" 10 # Only verify on plugin 11 ACTION=="remove", GOTO="usbgend" 12

Re: Allow only selected USB

2021-02-09 Thread Bhasker C V
Fantastic ! thanks a ton ! thanks ! exactly what i was looking for On Tue, Feb 9, 2021 at 7:43 PM wrote: > Hi, > > 9 févr. 2021, 19:44 de mailingl...@darac.org.uk: > > > Certainly. > > https://www.kernel.org/doc/html/latest/usb/authorization.html > > > + https://usbguard.github.io based on it.

Re: Allow only selected USB

2021-02-09 Thread l0f4r0
Hi, 9 févr. 2021, 19:44 de mailingl...@darac.org.uk: > Certainly. > https://www.kernel.org/doc/html/latest/usb/authorization.html > + https://usbguard.github.io based on it. Best regards, l0f4r0

Re: Allow only selected USB

2021-02-09 Thread Darac Marjal
On 09/02/2021 18:38, Bhasker C V wrote: > Hi all, > > I know it is very useful that linux auto-detects a USB device when > plugged in. However I am trying to build a server which employs deny > first rule. That is, I don't want linux kernel to detect any USB > device even if plugged in except those

Allow only selected USB

2021-02-09 Thread Bhasker C V
Hi all, I know it is very useful that linux auto-detects a USB device when plugged in. However I am trying to build a server which employs deny first rule. That is, I don't want linux kernel to detect any USB device even if plugged in except those listed with a Vendor/device ID in a file (per