From: Eric W. Biederman Date: Fri, 22 Mar 2013 10:10:15 +0000 (-0700) Subject: vfs: Add a mount flag to lock read only bind mounts X-Git-Tag: v3.9-rc5~21^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90563b198e4c6674c63672fae1923da467215f45;p=pandora-kernel.git 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 Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed