[Lxc-users] mounting usbfs inside a container

John lxc at jelmail.com
Sun Jan 8 17:44:40 UTC 2012


I am trying to mount /proc/bus/usb inside a container. I have the 
following entry inside my config file:

lxc.mount.entry = none /srv/lxc/mycontainer/proc/bus/usb usbfs 
auto,listuid=0,listgid=95,listmode=0660,busuid=0,busgid=95,busmode=0770,devuid=0,devgid=95,devmode=0660 
0 0

It mounts fine and it works fine except I do not get the permissions 
that I intended. The top level at /proc/bus/usb is correct but the lower 
levels e.g. /proc/bus/usb/001/046 are set to root:root and 644 or 666.

Is this a limitation of LXC, or am I doint something wrong?

Many thanks in advance.

John







More information about the lxc-users mailing list