On 06/25/2013 01:52 AM, Hans de Goede wrote:
Add "Select USB devices to redirect" option in console viewer
Initialize and embed UsbDeviceWidget object from SpiceClientGtk into
a dialog to let user choose available USB devices for redirection.
Throw an error message if USB connection failed.
These feature works well if running virt-manager application with
super root privilege. But if running it with non-root user, libusb
will report Permission problem as follows.
libusbx: error [op_open] libusbx couldn't open USB device
/dev/bus/usb/002/010: Permission denied.
libusbx: error [op_open] libusbx requires write access to USB device
nodes.
I am not sure about this, the error explains itself. In this case
virt-manager
will popup a dialog to show related error from spice-client library.
That should not happen, spice-gtk will invoke
/usr/libexec/spice-gtk-x86_64/spice-client-glib-usb-acl-helper
Which is a suid root binary, that will call into pollkit to ask if it
is ok to
change rights on the device node, and then change the rights on the
device node
(the default polkit policy is allow local).
If this is not working for you something is wrong with your spice-gtk
installation,
for starters check the helper binary is properly suid-root.
And if you compiled from source, re-run ./configure and ensure that
nothing
is missing.
Yeah. I missed polkit-devel, so the helper program didn't compile.
After recompiling spice-gtk, it works well. Thanks.
Guannan
_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list