Red Hat Bugzilla – Bug 508326
Force use of /sys/bus/usb for all USB host devices
Last modified: 2009-07-03 04:33:46 EDT
Description of problem:
The QEMU USB host device support has code for accessing devices via three different location
The first 2 are legacy locations, and /sys/bus/usb is the preferred location for modern kernels.
QEMU currently probes for each of these in turn, and tries the preferred sysfs option last. This is a problem for sVirt since the first two will generate AVC alerts as the SELinux labelling will never allow access to them.
/sys/bus/usb will be shortly gaining support for fine grained SELinux labelling allowing devices to be labelled for individual guests.
Since Fedora only needs to support modern kernels, QEMU should not bother trying to use /dev/bus/usb or /proc/bus/usb, and instead go straight to /sys/bus/usb. This will avoid the needless AVCS.
Thus this BZ is to request commenting outof the code for using /dev and /proc for USB devices.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Fix sent upstream and built in rawhide
* Fri Jul 3 2009 Mark McLoughlin <firstname.lastname@example.org> - 2:0.10.50-8.kvm87
- Prefer sysfs over usbfs for usb passthrough (#508326)