Skip to content
  • Andrew Morton's avatar
    [PATCH] revert "vfs: propagate mnt_flags into do_loopback/vfsmount" · eee391a6
    Andrew Morton authored
    Revert commit f6422f17
    
    , due to
    
    Valdis.Kletnieks@vt.edu wrote:
    >
    > There seems to have been a bug introduced in this changeset:
    >
    > Am running 2.6.17-rc3-mm1.  When this changeset is applied, 'mount --bind'
    > misbehaves:
    >
    > > # mkdir /foo
    > > # mount -t tmpfs -o rw,nosuid,nodev,noexec,noatime,nodiratime none /foo
    > > # mkdir /foo/bar
    > > # mount --bind /foo/bar /foo
    > > # tail -2 /proc/mounts
    > > none /foo tmpfs rw,nosuid,nodev,noexec,noatime,nodiratime 0 0
    > > none /foo tmpfs rw 0 0
    >
    > Reverting this changeset causes both mounts to have the same options.
    >
    > (Thanks to Stephen Smalley for tracking down the changeset...)
    >
    
    Cc: Herbert Poetzl <herbert@13thfloor.at>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: <Valdis.Kletnieks@vt.edu>
    Cc: Stephen Smalley <sds@tycho.nsa.gov>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    eee391a6