News for hackers. Stuff that matters.
Re:Dot Dot Considered Harmful by loeg on Wednesday November 28, 2018 @09:23PM (#18557557)
Thanks for working to incorporate it in Linux.

FreeBSD has moved to be compatible with the proposed Linux O_BENEATH as well[1]. We're hoping this helps write portable, capability-restricted code between FreeBSD and Linux.

[1]: https://svnweb.freebsd.org/base?view=revision&revision=33974...

(We already had very similar functionality for Capsicum-restricted directory fds to piggy-back off of.)

Re:Dot Dot Considered Harmful by cyphar on Thursday November 29, 2018 @12:04AM (#18558241)
Yes, though FreeBSD's O_BENEATH would probably have to be done using (O_BENEATH|O_NOMAGICLINKS|O_XDEV). Linus, Andy and Al were very insistent that various parts should be split into separate flags.