Re: Loopback (dir->dir) mounting (NOT -o loop)

From: H. Peter Anvin (hpa@transmeta.com)
Date: Thu Jun 01 2000 - 20:14:29 EST


"Kenneth C. Arnold" wrote:
> >
> > Fine, then:
> >
> > g=1
> > while [ $g -lt 10000 ]; do
> > mkdir /home/user/junk/$g
> > mount -t bind /home/user/megadir /home/user/junk/$g
> > g=`expr $g + 1`
> > done
>
> Ewww... 10,000 extra mounts is _not_ what I had in mind! (can Linux
> even support that much? Even if so, it would seriously bog stuff
> down...)
>
> Then again, there isn't much use for recursion anyway. Although
> it would be fun to play with...
>

The point is that if this is left as an unprivileged feature it is
trivial to screw over backups or anything similar.

        -hpa

-
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 : Wed Jun 07 2000 - 21:00:14 EST