Re: [PATCH] root-hopping for pre-2.3.41-3

From: Horst von Brand (vonbrand@pincoya.inf.utfsm.cl)
Date: Wed Jan 26 2000 - 09:53:54 EST


"H. Peter Anvin" <hpa@transmeta.com> said:
> almesber@lrc.di.epfl.ch wrote:
> > H. Peter Anvin wrote:
> > > I would like to suggest an alternate system call with, perhaps, more
> > > useful semantics:
> > >
> > > pivot_root("new_root", "old_root");
> >
> > ... with an implicit "chroot everybody on / to /new_root". That would
> > solve a few problems, yes. I'll give it a try.

> Right... everyone on the old / move to the new /, although I guess
> that's technically not 100% necessary.

What about mounts under the (now old) root? What if /new_root/usr doesn't
exist, is not a directory, has something else mounted? What happens with
open /dev/whatever?

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:16 EST