Re: new ...at() flag: AT_NO_JUMPS

From
Al Viro <viro@ZenIV.linux.org.uk>
Date
2017-05-05 01:06:54
Also in
linux-fsdevel, lkml
Reply to
Andy Lutomirski, 2017-05-05
On Thu, May 04, 2017 at 05:44:19PM -0700, Andy Lutomirski wrote:
quoted
It's not quite O_BENEATH, and IMO it's saner that way - a/b/c/../d is
bloody well allowed, and so are relative symlinks that do not lead out of
the subtree.  If somebody has a good argument in favour of flat-out
ban on .. (_other_ than "other guys do it that way, and it doesn't need
to make sense 'cuz security!!1!!!", please), I'd be glad to hear it.
I don't have an argument for allowing '..'.  I think it would be okay
to disallow it, but I don't think it matters all that much either way.
Relative symlinks as argument in favour of allowing .. _when_ _it_ _stays_
_in_ _subtree_.
quoted
For the latter I would prefer -EXDEV, for obvious reasons.  For the former...
not sure.  I'm not too happy about -ELOOP, but -EPERM (as with O_BENEATH)
is an atrocity - it's even more overloaded.

Suggestions?
-EDOTDOT would be amusing.
For ln -s /tmp foo/bar, lookup for foo/bar/baz?  Seriously?  Hell, even
-EXDEV would make more sense...
Thread (22 messages) 22 messages, 6 authors, last reply 2017-05-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help