<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - option to lock USB ports when no session is opened"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82369#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - option to lock USB ports when no session is opened"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=82369">bug 82369</a>
              from <span class="vcard"><a class="email" href="mailto:corsac@debian.org" title="Yves-Alexis <corsac@debian.org>"> <span class="fn">Yves-Alexis</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>