]> 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)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 2 Dec 2014 16:46:39 +0000 (10:46 -0600)
commit3e1866410f11356a9fd869beb3e95983dc79c067
tree4c617a54e8239301118d7dc469a2db42acfed042
parent5d01410fe4d92081f349b013a2e7a95429e4f2c9
mnt: Implicitly add MNT_NODEV on remount when it was implicitly added by mount

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>
Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c