diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2016-06-15 06:59:49 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-06-23 15:41:57 -0500 |
commit | a1935c1738af53249a02290ff7c10e8a6e650a16 (patch) | |
tree | 1906ee4f4cacd1d769b947e3d81460404ecceffd /tools/perf/builtin-lock.c | |
parent | a2982cc922c3068783eb9a1f77a5626a1ec36a1f (diff) | |
download | op-kernel-dev-a1935c1738af53249a02290ff7c10e8a6e650a16.zip op-kernel-dev-a1935c1738af53249a02290ff7c10e8a6e650a16.tar.gz |
mnt: Simplify mount_too_revealing
Verify all filesystems that we check in mount_too_revealing set
SB_I_NOEXEC and SB_I_NODEV in sb->s_iflags. That is true for today
and it should remain true in the future.
Remove the now unnecessary checks from mnt_already_visibile that
ensure MNT_LOCK_NOSUID, MNT_LOCK_NOEXEC, and MNT_LOCK_NODEV are
preserved. Making the code shorter and easier to read.
Relying on SB_I_NOEXEC and SB_I_NODEV instead of the user visible
MNT_NOSUID, MNT_NOEXEC, and MNT_NODEV ensures the many current
systems where proc and sysfs are mounted with "nosuid, nodev, noexec"
and several slightly buggy container applications don't bother to
set those flags continue to work.
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'tools/perf/builtin-lock.c')
0 files changed, 0 insertions, 0 deletions