do_add_mount() should sanitize mnt_flags
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jan 2010 18:07:36 +0000 (13:07 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jan 2010 18:07:36 +0000 (13:07 -0500)
commit27d55f1f4c190b14092fcca3069c7d15df83514f
treee0d305a30fa5b5655b87ecc1b50d1664fb4bf70e
parent7e1295d9f8300e8c8d1af01765f475621c19ee1d
do_add_mount() should sanitize mnt_flags

MNT_WRITE_HOLD shouldn't leak into new vfsmount and neither
should MNT_SHARED (the latter will be set properly, along with
the rest of shared-subtree data structures)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c