mnt: Implicitly add MNT_NODEV on remount when it was implicitly added by mount
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Aug 2014 08:33:38 +0000 (01:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2015 18:27:47 +0000 (10:27 -0800)
commit363eafe02e1e0583dbe4435fe3bc447e2c3ddf4b
tree29c46ad77d25ef67cb3d5bf502a95f89515c4e21
parent725a7308ec9dc4fef461467f35d88bb2a3c6069e
mnt: Implicitly add MNT_NODEV on remount when it was implicitly added by mount

commit 3e1866410f11356a9fd869beb3e95983dc79c067 upstream.

Now that remount is properly enforcing the rule that you can't remove
nodev at least sandstorm.io is breaking when performing a remount.

It turns out that there is an easy intuitive solution implicitly
add nodev on remount when nodev was implicitly added on mount.

Tested-by: Cedric Bosdonnat <cbosdonnat@suse.com>
Tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c