Re: [patch 00/13] vfs: add helpers to check r/o bind mounts

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Thursday, April 24, 2008 - 8:59 am

On Thu, Apr 24, 2008 at 05:37:39PM +0200, Miklos Szeredi wrote:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^


Which leaves you with the same need to audit all these suckers anyway.

I'm in principle fine with having such helper functions, *IF* they are
not sold as providing all protection one needs, *IF* you are not expecting
to be able to fold all areas down into them and *IF* original ones are
left intact.

Modulo the like path_rename(), BTW - that one is just plain ugly API.


OK.


OK, explain me, in small words, WTF should something that wants to do
operations on filesystem tree have a vfsmount.  Slowly.  And "r/o
bind loses value if it can be bypassed" is a hogwash - fs methods are
still there, so it *can* be bypassed just fine, thank you very much.
It's really up to caller.  "But they won't be able to do open()" also
doesn't fly - again, it's up to whoever writes particular piece of code.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/13] vfs: add helpers to check r/o bind mounts, Miklos Szeredi, (Thu Apr 24, 4:39 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Al Viro, (Thu Apr 24, 8:59 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Miklos Szeredi, (Thu Apr 24, 10:23 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Miklos Szeredi, (Thu Apr 24, 11:47 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Michael Halcrow, (Thu Apr 24, 1:16 pm)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Michael Halcrow, (Thu Apr 24, 4:33 pm)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Miklos Szeredi, (Fri Apr 25, 12:22 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, Michael Halcrow, (Mon Apr 28, 7:20 am)
Re: [patch 00/13] vfs: add helpers to check r/o bind mounts, J. Bruce Fields, (Mon Apr 28, 2:53 pm)