mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] vfs: Report a mount r/o if the superblock is
@ 2013-03-14 16:09 Shea Levy
  2013-03-14 16:09 ` [PATCH 1/2] vfs: mountinfo: A mnt is " Shea Levy
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shea Levy @ 2013-03-14 16:09 UTC (permalink / raw)
  To: Alexander Viro, linux-fsdevel, linux-kernel; +Cc: Shea Levy

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/<pid>/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 <shea@shealevy.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-05 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 16:09 [PATCH 0/2] vfs: Report a mount r/o if the superblock is Shea Levy
2013-03-14 16:09 ` [PATCH 1/2] vfs: mountinfo: A mnt is " Shea Levy
2013-03-14 16:09 ` [PATCH 2/2] vfs: statfs: A fs " Shea Levy
2013-03-22  1:24 ` [PATCH 0/2] vfs: Report a mount " Shea Levy
2013-04-05 14:06 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®