[PATCH] VFS: lookup path of "-o remount" the same way as "umount"

2017-08-10 Thread NeilBrown
"mount -o remount" does not need to validate the target directory for the same reasons that "umount" doesn't. It just needs to find the mountpoint and verify it is a mountpount. So change do_mount() to use user_path_mountpoint_at() in the MS_REMOUNT case. This means that mount(..,

[PATCH] VFS: lookup path of "-o remount" the same way as "umount"

2017-08-10 Thread NeilBrown
"mount -o remount" does not need to validate the target directory for the same reasons that "umount" doesn't. It just needs to find the mountpoint and verify it is a mountpount. So change do_mount() to use user_path_mountpoint_at() in the MS_REMOUNT case. This means that mount(..,