[systemd-bugs] [Bug 82369] option to lock USB ports when no session is opened

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 9 02:14:30 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82369

--- Comment #1 from Yves-Alexis <corsac at debian.org> ---
So, it seems that the correct way is to do:

for bus in /sys/bus/usb/usb*;
do
  echo 0 > ${bus}/authorized_default
done

to disable registration of new devices on the USB busses. The devices still get
enumerated by the kernel, but they're not handled by any driver.

Same thing with 1 (or -1) will re-enable the registration.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140809/34bd9c4f/attachment.html>


More information about the systemd-bugs mailing list