Re: [Vserver] Problems with libusb in vservers

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Mon 09 Oct 2006 - 21:01:12 BST
Message-ID: <452AAA88.2030603@hozac.com>

Ludovic RESLINGER wrote:
> Hi,
>
> I have a problem to use USB scanner using
> libusb in vserver.
> It seems impossible to access to /proc/bus/usb/*
> in vserver.
> I modified the /usr/lib/util-vserver/defaults/vprocunhide-files
> to add /proc/bus, but there is only /proc/bus/input and /proc/bus/pci.
>
> I added the line to fstap to mount /proc/bus/usb but it changed nothing.
>
> When I specify /proc/bus/usb in vprocunhide-files, I meet this error
> when I try to reload vprocunhide:
>
> (...)
> Fixing /proc entries visibility.../proc/bus/usb/: Invalid argument
> /proc/bus/usb/devices: Invalid argument
> /proc/bus/usb/005: Invalid argument
> /proc/bus/usb/005/001: Invalid argument
> (...)

As expected, since usbfs doesn't support the flags.

The way to get this working is a bit hackish, because you must unhide
/proc/bus/usb _before_ usbfs is mounted there, alternatively something like:
vnamespace -n bash
umount -n /proc/bus/usb
setattr --~hide /proc/bus/usb
exit
should do it. Note that you'll still need to have it in the guest's fstab.

-- 
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Oct 9 21:01:38 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 09 Oct 2006 - 21:01:44 BST by hypermail 2.1.8