aboutsummaryrefslogtreecommitdiffstats
path: root/fs/devpts
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2016-05-18 13:50:06 -0500
committerEric W. Biederman <ebiederm@xmission.com>2016-06-23 15:47:23 -0500
commit67690f937c38bbab1d94cb45f6a32e61612834ae (patch)
treeb15e18fb82f42d4001c7d0b4e2d9d3b2113db95c /fs/devpts
parentmnt: Simplify mount_too_revealing (diff)
downloadlinux-dev-67690f937c38bbab1d94cb45f6a32e61612834ae.tar.xz
linux-dev-67690f937c38bbab1d94cb45f6a32e61612834ae.zip
userns: Remove implicit MNT_NODEV fragility.
Replace the implict setting of MNT_NODEV on mounts that happen with just user namespace permissions with an implicit setting of SB_I_NODEV in s_iflags. The visibility of the implicit MNT_NODEV has caused problems in the past. With this change the fragile case where an implicit MNT_NODEV needs to be preserved in do_remount is removed. Using SB_I_NODEV is much less fragile as s_iflags are set during the original mount and never changed. In do_new_mount with the implicit setting of MNT_NODEV gone, the only code that can affect mnt_flags is fs_fully_visible so simplify the if statement and reduce the indentation of the code to make that clear. Acked-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions