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.
--