Comment 58 for bug 787091

Revision history for this message
Royston Carter (rpcarter) wrote : Re: [Bug 787091] Re: Unable to use USB device in KVM quest

Serge,
     I have added the output to the call.

Regards

Roy

On 30/06/2011 14:20, Serge Hallyn wrote:
> Please download this file and extract it using
> tar zxf openeperm_kprobe.tar.gz
>
> Then you'll need to install a few prerequisites:
>
> apt-get install make gcc linux-headers-2.6.32-32-generic
>
> Enter the extracted directory and compile the kprobe:
>
> cd openeperm_kprobe
> make
>
> This will compile a kprobe (kernel probe) which, while installed, will
> give more information on the credentials of any process which receives
> -EPERM or -EACCES trying to open a file. So the way to use it is, load
> the module, start the virtual machine which tries to use the printer,
> unload the module once it has failed (i.e. you see the messages about
> failing to open /sys/bus/usb/001/004), then unload the module and look
> through the logs for any meaningful information.
>
> Load the module using: insmod openeperm.ko
> Unload it using: rmmod openeperm
>
> You can see the error messages using the command 'dmesg', and they will
> look like:
>
> [ 148.939971] sys_open returned: -13
> [ 148.939982] Call by: euid 1000 cap_eff 0
>
>
> ** Attachment added: "openeperm_kprobe.tar.gz"
> https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/787091/+attachment/2185306/+files/openeperm_kprobe.tar.gz
>