Re: [Vserver] Problems with libusb in vservers

2006-10-11 Thread Ludovic RESLINGER
> > Hi,
> > 
> > My host is Debian Sarge, and my new printer/scanner need latest
> > version of sane and cups. I would like to run a cups server and
> > a saned server in a vserver with Debian SID because I would like
> > to use my printer/scanner with others computer of my network.
> > My scanner is usb and it works with libusb and sane.
> > libusb need /proc/bus/usb mounted with usbfs to works,
> > else, my scanner is not detected.
> 
> i.c. well, if you are willing to do some tests (in
> this regard) I'm willing to take a look at this and
> try to make it properly available (maybe even tagable)
> 
> if so, please pay a visit to the IRC channel 
> (#vserver @ irc.oftc.net) and try to catch me there
> for further details
> 
> best,
> Herbert

Re,

Yes, I should do some tests.
I will try to visit irc channel this evening
or tomorrow.

Regards,
-- 
.---.  Ludovic RESLINGER
   / \
   [EMAIL PROTECTED]@./ Trumpet Student in CNR
   /`\_/`\ Free Software Developer
  // )X( \\
 | \  :  )|_   _,'|   .''`.
/`\_`>  <_/ \ @==TTT=::_  |  : :'  :
\__/'---'\__/   ((_<=HHH___))   `.|  `. `'`
 `---UUU---'=> `-


signature.asc
Description: Digital signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problems with libusb in vservers

2006-10-11 Thread Herbert Poetzl
On Wed, Oct 11, 2006 at 02:08:26PM +0200, Ludovic RESLINGER wrote:
> On Wed, Oct 11, 2006 at 02:52:31AM +0200, Herbert Poetzl wrote:
> > 
> > probably needs some adjustments to the 
> > usbfs as well, what do you need the usbfs
> > for, inside a guest?
> > 
> > TIA,
> > Herbert
> 
> Hi,
> 
> My host is Debian Sarge, and my new printer/scanner need latest
> version of sane and cups. I would like to run a cups server and
> a saned server in a vserver with Debian SID because I would like
> to use my printer/scanner with others computer of my network.
> My scanner is usb and it works with libusb and sane.
> libusb need /proc/bus/usb mounted with usbfs to works,
> else, my scanner is not detected.

i.c. well, if you are willing to do some tests (in
this regard) I'm willing to take a look at this and
try to make it properly available (maybe even tagable)

if so, please pay a visit to the IRC channel 
(#vserver @ irc.oftc.net) and try to catch me there
for further details

best,
Herbert

> Regards.
> -- 
> .---.  Ludovic RESLINGER
>/ \
>[EMAIL PROTECTED]@./ Trumpet Student in CNR
>/`\_/`\ Free Software Developer
>   // )X( \\
>  | \  :  )|_   _,'|   .''`.
> /`\_`>  <_/ \ @==TTT=::_  |  : :'  :
> \__/'---'\__/   ((_<=HHH___))   `.|  `. `'`
>  `---UUU---'=> `-



> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problems with libusb in vservers

2006-10-11 Thread Ludovic RESLINGER
On Wed, Oct 11, 2006 at 02:52:31AM +0200, Herbert Poetzl wrote:
> 
> probably needs some adjustments to the 
> usbfs as well, what do you need the usbfs
> for, inside a guest?
> 
> TIA,
> Herbert
> 

Hi,

My host is Debian Sarge, and my new printer/scanner need latest
version of sane and cups. I would like to run a cups server and
a saned server in a vserver with Debian SID because I would like
to use my printer/scanner with others computer of my network.
My scanner is usb and it works with libusb and sane.
libusb need /proc/bus/usb mounted with usbfs to works,
else, my scanner is not detected.

Regards.
-- 
.---.  Ludovic RESLINGER
   / \
   [EMAIL PROTECTED]@./ Trumpet Student in CNR
   /`\_/`\ Free Software Developer
  // )X( \\
 | \  :  )|_   _,'|   .''`.
/`\_`>  <_/ \ @==TTT=::_  |  : :'  :
\__/'---'\__/   ((_<=HHH___))   `.|  `. `'`
 `---UUU---'=> `-


signature.asc
Description: Digital signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problems with libusb in vservers

2006-10-10 Thread Herbert Poetzl
On Tue, Oct 10, 2006 at 05:22:27PM +0200, Ludovic RESLINGER wrote:
> On Mon, Oct 09, 2006 at 10:01:12PM +0200, Daniel Hokka Zakrisson wrote:
> > 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.
> > 
> 
> Hi,
> 
> Thank you for your answer.
> Ok, I dit what you told me and now 
> I've /proc/bus/usb in my vserver,
> but I haven't any access to /proc/bus/usb/*.
> When I mount usbfs and restart my vserver,
> my /proc/bus/usb stay empty in my vserver.

probably needs some adjustments to the 
usbfs as well, what do you need the usbfs
for, inside a guest?

TIA,
Herbert

> Regards
> -- 
> .---.  Ludovic RESLINGER
>/ \
>[EMAIL PROTECTED]@./ Trumpet Student in CNR
>/`\_/`\ Free Software Developer
>   // )X( \\
>  | \  :  )|_   _,'|   .''`.
> /`\_`>  <_/ \ @==TTT=::_  |  : :'  :
> \__/'---'\__/   ((_<=HHH___))   `.|  `. `'`
>  `---UUU---'=> `-



> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problems with libusb in vservers

2006-10-10 Thread Ludovic RESLINGER
On Mon, Oct 09, 2006 at 10:01:12PM +0200, Daniel Hokka Zakrisson wrote:
> 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.
> 

Hi,

Thank you for your answer.
Ok, I dit what you told me and now 
I've /proc/bus/usb in my vserver,
but I haven't any access to /proc/bus/usb/*.
When I mount usbfs and restart my vserver,
my /proc/bus/usb stay empty in my vserver.

Regards
-- 
.---.  Ludovic RESLINGER
   / \
   [EMAIL PROTECTED]@./ Trumpet Student in CNR
   /`\_/`\ Free Software Developer
  // )X( \\
 | \  :  )|_   _,'|   .''`.
/`\_`>  <_/ \ @==TTT=::_  |  : :'  :
\__/'---'\__/   ((_<=HHH___))   `.|  `. `'`
 `---UUU---'=> `-


signature.asc
Description: Digital signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problems with libusb in vservers

2006-10-09 Thread Daniel Hokka Zakrisson

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