Re: [libvirt] [PATCH 2/4] virt-aa-helper: fix libusb access to udev usb data

2017-10-25 Thread Jamie Strandboge
On Wed, 2017-09-20 at 16:59 +0200, Christian Ehrhardt wrote: > > + # libusb needs udev data about usb devices (~equal to content of > lsusb -v) > + /run/udev/data/c16[6,7]* r, > + /run/udev/data/c18[0,8,9]* r, > This read-only access looks fine to me. +1 -- Jamie Strandboge | ht

[libvirt] [PATCH 2/4] virt-aa-helper: fix libusb access to udev usb data

2017-09-20 Thread Christian Ehrhardt
libusb as used by qemu needs to read data from /run/udev/data/ about usb devices. That is read once on the first initialization of libusb_init by qemu. Therefore generating just the device we need would not be sufficient as another hotplug later can need another device which would fail as the data