]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit175a3b2822446aaf3ad9a19ed5d159e75fccbd06
treee0d305a30fa5b5655b87ecc1b50d1664fb4bf70e
parentbe6af49b0bb29e241aa36dbacf9a6331b5ee0ed6
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