lkml.org 
[lkml]   [2001]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Maximum mountpoints + chrooted login
Date
From: "Alexander Viro" <viro@math.psu.edu>
>
[snip]
>
> I didn't go for proper solution in 2.4.0-test*). However, instead of
> crufting up kinda-sorta namespaces one could use the real thing. Relevant
> cleanups of superblock handling will go in in 2.5.very_early and the
> rest of patch (namespace proper) takes about 10Kb.
>

I'll wait for 2.5 then...
Where's that namespace patch located?

> You can simply say clone(CLONE_NAMESPACE,NULL) and you get an independent
> set of mounts to play with. mount/umount whatever you want before dropping
> the root priveleges. All children of that process will share its
namespace.
> When the last one goes away everything will be garbage-collected - no
> need to umount anything on logout.
>

Lovely!

>
> With the mntcache in - not really. It fixes the main performance problem.

Now in 2.4.5 it's darn slow to _unmount_, it's like 100 times faster to
mount than unmount :)

Cheers

Magnus Naeslund

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Programmer/Networker [|] Magnus Naeslund
PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



-
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/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.056 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site