Re: FUSE merging?

From: Frank van Maarseveen (frankvm_at_frankvm.com)
Date: 07/01/05

  • Next message: arjun kumar: "reiser4 vs politics: linux misses out again"
    Date:	Fri, 1 Jul 2005 17:20:03 +0200
    To: Miklos Szeredi <miklos@szeredi.hu>
    
    

    On Fri, Jul 01, 2005 at 03:21:59PM +0200, Miklos Szeredi wrote:
    >
    > > To require an empty stub to mount FUSE upon makes the whole picture
    > > cleaner: users are only able to extend the namespace _leaf_ nodes for
    > > themselves and processes they can send signals to: setuid programs
    > > which do not fully become root. The existing namespace [nodes] remains
    > > unchanged for everyone.
    >
    > It's not as simple. A filesystem can be mounted many times (either
    > with mount --bind, or just by mounting the same device on multiple
    > mountpoints). In this case you can't ensure, that a mountpoint will
    > remain a leaf node after being mounted on.

    I have bind-mounted / on /net/blabla
    I tried two experiments:

            mounting something under / and looking for it under /net/blabla
            mounting something under /net/blabla and looking for it under /

    The experiment was done with bind mounts and by mounting a USB stick
    (/dev/sdb1) and there was no auto propagation of mounts.

    (2.6.12-rc6)

    How can a leaf dir suddenly become non-leaf by a mount without an explicit
    mount command?

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

  • Next message: arjun kumar: "reiser4 vs politics: linux misses out again"

    Relevant Pages

    • Re: FUSE merging?
      ... You can ensure that a mountpoint is a leaf node at mount ... but you cannot force it to remain a leaf node after the mount. ... user places a FUSE mount on top of his own login directory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: FUSE merging?
      ... the whole "not allowing namespace differences ... The problem with this leaf node philosophy, ... You can ensure that a mountpoint is a leaf node at mount ...
      (Linux-Kernel)
    • Re: FUSE merging?
      ... >> Hmm, do you mean returning different directory contents based on uid? ... You can ensure that a mountpoint is a leaf node at mount ... but you cannot force it to remain a leaf node after the mount. ... > It should be possible to do audits on local filesystems, ...
      (Linux-Kernel)
    • Re: the umount() saga for regular linux desktop users
      ... Don't know about vfat, which is how I mount a floppy, but I just put ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Panic with mounting CD in 2.6.0test8
      ... Attempt to mount a particular CD, which I'm thinking is just an ordinary ... Windows sees it as a data disk with one big AVI file on it. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)