Thread (4 messages) 4 messages, 4 authors, 2014-07-01

Re: [PATCH 01/11] fs: add O_BENEATH_ONLY flag to openat(2)

From: Andy Lutomirski <luto@amacapital.net>
Date: 2014-06-30 21:12:13
Also in: lkml

On Mon, Jun 30, 2014 at 1:40 PM, Andi Kleen [off-list ref] wrote:
David Drysdale [off-list ref] writes:
quoted
Add a new O_BENEATH_ONLY flag for openat(2) which restricts the
provided path, rejecting (with -EACCES) paths that are not beneath
the provided dfd.  In particular, reject:
 - paths that contain .. components
 - paths that begin with /
 - symlinks that have paths as above.
How about bind mounts?
What's the problematic scenario?

--Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help