Re: Remount root RO after the root dentry drops from the namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 18, 2009 at 01:58:31PM +0100, Miklos Szeredi wrote:
> On Wed, 18 Nov 2009, Daniel Drake wrote:
> > 
> > 	if (flags & MS_BIND)
> > 		err = change_mount_flags(path->mnt, flags);
> > 	else
> > 		err = do_remount_sb(sb, flags, data, 0);
> > 
> 
> Note: the "flags" tested here are supplied from the argument of
> mount(2), and are not flags stored in the mount.  And btw, MS_BIND is
> not stored in the mount at all, there's absolutely no difference
> between a mount created with "--bind" and one without.

 The "flags" argument of mount(2) always contains MS_BIND for bind
 mounts (if you use standard mount(8) command and /etc/mtab) for -o
 remount.
 
    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux