Re: [lxc-devel] Anybody used FUSE in a container?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:24 AM, Rob Landley wrote: > After investigating I don't see any reason sshfs shouldn't work just > fine in a container out of the box (all the network stuff happens in > userspace), but I can't create the FUSE dev node from within the > container because mknod doesn't work from the

Re: [lxc-devel] do pid1 and pid2 run in the same network namespace

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 08:39 AM, Maheswara Reddy C - ERS, HCL Tech wrote: > Hi Daniel, > > We could able to create ten (N) number of namespaces, how can we identify the > specified namespace. > > Shall we use the return value of unshare() , as unique namespace ID ? No, the unshare returns 0 on success or

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:22 AM, Rob Landley wrote: > It looks like clone flags aren't the only way to create a new namespace, > any existing process can move to a new namespace via unshare(2). > > This sounds like you could fairly easily make a super_chroot() function > that does most of the container stuf

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 09:53 AM, Daniel Lezcano wrote: > On 02/23/2011 05:22 AM, Rob Landley wrote: >> It looks like clone flags aren't the only way to create a new namespace, >> any existing process can move to a new namespace via unshare(2). >> >> This sounds like you could fairly easily make a super_chro

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Rob Landley
On 02/23/2011 03:40 AM, Daniel Lezcano wrote: > On 02/23/2011 09:53 AM, Daniel Lezcano wrote: >> On 02/23/2011 05:22 AM, Rob Landley wrote: >>> It looks like clone flags aren't the only way to create a new namespace, >>> any existing process can move to a new namespace via unshare(2). >>> >>> This

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 09:52 PM, Rob Landley wrote: > On 02/23/2011 03:40 AM, Daniel Lezcano wrote: >> On 02/23/2011 09:53 AM, Daniel Lezcano wrote: >>> On 02/23/2011 05:22 AM, Rob Landley wrote: It looks like clone flags aren't the only way to create a new namespace, any existing process can move