News for hackers. Stuff that matters.
Re:Dot Dot Considered Harmful by ninkendo on Wednesday November 28, 2018 @04:06PM (#18555702)
The answer to that for a capability-based system would be to not grant a process access to /Users, but instead give it an opaque handle that grants access to /Users/delinka. It's definitely not how unix systems work (where you need read access to all of the parents to access a child directory), but in a capability-based system it makes sense IMO.
Re:Dot Dot Considered Harmful by cyphar on Wednesday November 28, 2018 @07:35PM (#18557116)
You don't need read access to all parents (on Linux and BSDs at least) -- a privileged can pass a dirfd to a less privileged process and that process can access paths under that dirfd without any permission checks being done for parent directories of the dirfd.
Re:Dot Dot Considered Harmful by nine_k on Wednesday November 28, 2018 @07:46PM (#18557195)
This is correct. But this is not traversing a path, or even knowing it.
Re:Dot Dot Considered Harmful by loeg on Wednesday November 28, 2018 @10:15PM (#18557746)
The comment was refuting the claim, "where you need read access to all of the parents to access a child directory."
Re:Dot Dot Considered Harmful by daurnimator on Wednesday November 28, 2018 @09:04PM (#18557486)
You don't need read access, only execute access.