]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:55:08 +0000 (17:55 +0100)
commita4c2b660f35a1f1201cea27d5fbad41482b191fc
tree51a6e4d531b721aed88bab2704ccd42fd11f87a2
parentf7c68a1aa5d3bf2e94c548c8d77de50640a11209
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: Jiri Slaby <jslaby@suse.cz>
fs/namespace.c