|
@@ -3247,6 +3247,10 @@ static bool fs_fully_visible(struct file_system_type *type, int *new_mnt_flags)
|
|
|
if (mnt->mnt.mnt_sb->s_iflags & SB_I_NOEXEC)
|
|
|
mnt_flags &= ~(MNT_LOCK_NOSUID | MNT_LOCK_NOEXEC);
|
|
|
|
|
|
+ /* Don't miss readonly hidden in the superblock flags */
|
|
|
+ if (mnt->mnt.mnt_sb->s_flags & MS_RDONLY)
|
|
|
+ mnt_flags |= MNT_LOCK_READONLY;
|
|
|
+
|
|
|
/* Verify the mount flags are equal to or more permissive
|
|
|
* than the proposed new mount.
|
|
|
*/
|