On ven., 2014-08-08 at 18:17 -0400, Alan Stern wrote: > The authorized_default module parameter affects USB buses when they > are > discovered and registered; after that it has no effect. Therefore to > accomplish what you want, you need to put > "usbcore.authorized_default=0" in the kernel's boot command line. > > Alternatively, you can change the default authorization value for a > particular bus after it has been created, by writing to the > authorized_default sysfs file for the bus's root hub. For example, > > echo 0 >/sys/bus/usb/devices/usb1/authorized_default > > will set the default value for new devices on bus 1 to 0. Thanks for your answer. So that confirms it's not possible to toggle that value depending on a platform state (for example if the session is locked). Regards, -- Yves-Alexis
Attachment:
signature.asc
Description: This is a digitally signed message part