From: Shea Levy Subject: [PATCH 0/2] vfs: Report a mount r/o if the superblock is Date: Thu, 14 Mar 2013 12:09:18 -0400 Message-ID: <1363277360-1947-1-git-send-email-shea@shealevy.com> Cc: Shea Levy To: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org By calling mount(2) with MS_REMOUNT | MS_BIND on a non-bind readonly mountpoint, it is possible to have a readonly mount without MNT_READONLY in its mnt_flags. Currently, /proc//mountinfo and statfs will report such a mount as r/w, even though for all intents and purposes it is still readonly. This patchset fixes show_mountinfo and statfs to report such mounts as readonly. Signed-off-by: Shea Levy