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 stuff.

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 sounds like

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

2011-02-22 Thread Rob Landley
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 stuff. The hard part would be doing mount points,