Re: [PATCH] private mounts

Christoph Hellwig
2005-04-30T08:37:58Z

On Mon, Apr 25, 2005 at 11:48:04AM +0200, Olivier Galibert wrote:
> On Sun, Apr 24, 2005 at 10:19:42PM +0100, Al Viro wrote:
> > Of course you can. It does execute the obvious set of rc files.
>
> Is there a possibility for a process to change its namespace to
> another existing one? That would be needed to have a per-user
> namespace you go to from rc files or pam.

It is not right now, and I don't think joining a namespace is a concept
that fits very well into our architecture. What does make sense is an
unshare() syscall that takes the CLONE_* argument and unshares those in
the current process from the parent without creating a new process. Then
you can easily reproduce another namespace by value instead of by reference.