Re: Filesystem Capabilities in 2.6?

Linus Torvalds (torvalds@transmeta.com)
Sun, 3 Nov 2002 10:13:37 -0800 (PST)


On Sun, 3 Nov 2002 yodaiken@fsmlabs.com wrote:
>
> Plan 9 !

Well, yes. But also Linux. The code is all there, and you can create a new
namespace group with just a simple CLONE_NEWNS. Then you just do
pivot_root() in that namespace, unmount the old root, and you're done.

Yeah, yeah, I'm sure I forgot something, glossed over the details, and a
real example is more involved. And I'm also sure it hasn't been used in
practice all that much, but Al's point is that this is much more than
"chroot()", and is actually safe from all the normal chroot problems.
Because the namespace is not a part of the old tree - it's a completely
new tree with no connections to the old one.

We got it pretty much for free (*) with the vfsmount stuff - which in turn
was needed for bind-mounts.

Linus

(*) Although, to be honest, it's hard to say how much of it was "for
free", and how much of it was the normal "Al thinking ahead a year or so
while doing incremental patches". Al is scary that way.

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