Comment 17 for bug 1552241

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Mabye "only" allowing the one we need is sufficient for libusb to work correctly?
Lets take my case, I know I'm going to insert: "0781:5580".

$grep -l 5580 $(grep -lr 0781 /run/udev/data/c16[6,7]* /run/udev/data/c18[0,8,9]* 2>/dev/null | xargs)
/run/udev/data/c189:257

So I'd be able to (much harder in C that is sure) to know which one we need.
Experiment with only allowing that...

Ok, so that (to allow only the selected device) would even work, but that isn't complete.
As I found before libusb_init is only called "once" per qemu.
Which I think might be an issue in general as USB devices are supposed to come and go right?

But with a solution that only allows the one passed what happens if a user wants to attach another device.
There will be no new init and due to that it will fail?
Need to test that as well...