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

From: Alexander Viro (
Date: Sun Jun 04 2000 - 17:03:22 EST

On Sun, 4 Jun 2000, Jamie Lokier wrote:

> > IMO security-concerned stuff should treat mountpoints the same way it
> > treats symlinks. Notice that bindings _are_ mountpoints in all respects
> > and if you bind the root of filesystem tree you can't distinguish that
> > from the case when you simply mounted that fs twice - it will give you
> > exactly the same state. And treatment of mountpoints might be nicer, to
> > put it mildly - rm -rf crossing the mountpoints hardly made anyone
> > happy ;-/
> It's ugly, but maybe they could appear as symlinks "mntpnt ->
> mntpnt/:vfsmount_info"? .. works as you want and they're not followed
> by security-conscious stuff.

Eeeeeerrch... That's not ugly, that's sick.
% ls -l /usr
lrwxrwxrwx 1 root root 5 Jun 3 11:08 /usr -> usr/:something
Dunno about security-conscious programs, but I wouldn't like to see that -
vomit makes keyboard sticky.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:19 EST