summaryrefslogtreecommitdiffstats
path: root/include/linux/mount.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-07-28 17:10:56 -0700
committerEric W. Biederman <ebiederm@xmission.com>2014-07-31 17:12:17 -0700
commit07b645589dcda8b7a5249e096fece2a67556f0f4 (patch)
tree984891e348c4ed58d8432aa9055b95ec89e5bf89 /include/linux/mount.h
parenta6138db815df5ee542d848318e5dae681590fccd (diff)
downloadtalos-obmc-linux-07b645589dcda8b7a5249e096fece2a67556f0f4.tar.gz
talos-obmc-linux-07b645589dcda8b7a5249e096fece2a67556f0f4.zip
mnt: Move the test for MNT_LOCK_READONLY from change_mount_flags into do_remount
There are no races as locked mount flags are guaranteed to never change. Moving the test into do_remount makes it more visible, and ensures all filesystem remounts pass the MNT_LOCK_READONLY permission check. This second case is not an issue today as filesystem remounts are guarded by capable(CAP_DAC_ADMIN) and thus will always fail in less privileged mount namespaces, but it could become an issue in the future. Cc: stable@vger.kernel.org Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/mount.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud