Commit 90563b198e4c6674c63672fae1923da467215f45
1 parent
3151527ee0
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
vfs: Add a mount flag to lock read only bind mounts
When a read-only bind mount is copied from mount namespace in a higher privileged user namespace to a mount namespace in a lesser privileged user namespace, it should not be possible to remove the the read-only restriction. Add a MNT_LOCK_READONLY mount flag to indicate that a mount must remain read-only. CC: stable@vger.kernel.org Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff
fs/namespace.c
include/linux/mount.h