Re: [PATCH] private mounts

Pavel Machek
2005-04-26T09:29:48Z

Hi!

> > > > ... is the same as for the same question with "set of mounts" replaced
> > > > with "environment variables".
> > >
> > > Not quite.
> > >
> > > After changing environment variables in .profile, you can copy them to
> > > other shells using ". ~/.profile".
> > >
> > > There is no analogous mechanism to copy namespaces.
> >
> > Actually, after you add right mount xyzzy /foo lines into .profile,
> > you can just . ~/.profile ;-).
>
> Is there a mount command that can do that? We're talking about
> private mounts - invisible to other namespaces, which includes the
> other shells.
>
> If there was a /proc/NNN/namespace, that would do the trick :)

Sounds like the solution, then. I do not think Al Viro is going to
kill you for /proc/NNN/namespace...
Pavel
--
Boycott Kodak -- for their patent abuse against Java.