]> git.ipfire.org Git - people/ms/linux.git/commit
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:30:24 +0000 (10:30 -0800)
commit80d4d8397a96b79d4562f68596ba33432ab47cd1
tree754c8b63f472f6cfb4a19e4916a90a323591752c
parent16811f019293b6c34d6e2649ca8e182532805a22
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