On 04/25/2013 11:15 AM, yue wrote:
AFAIK currently, there is no such control on Read and Write permission. But you can use the following redirection filter to limit usb devices <usbdev> is a whitelist of filter policies. <redirfilter> <usbdev class='0x08' vendor='0x1234' product='0xbeef' version='2.00' allow='yes'/> <usbdev allow='no'/> </redirfilter>
The virtual machine need to add one or more USB redirection channels<redirdev> first in to domain XML, and these filter policies apply to them globally. For example: <devices> ... <redirdev bus='usb' type='spicevmc'> <address type='usb' bus='0' port='2'/> </redirdev> <redirfilter> <usbdev vendor='0x1234' product='0xbeef' allow='yes'/> </redirfilter> ... </devices> About details see :http://www.libvirt.org/formatdomain.html#elementsRedir Guannan |
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list