# Re: \[PATCH 01/11\] fs: add O\_BENEATH\_ONLY flag to openat(2)

- From: Meredydd Luff \<hidden\>
- Date: 2014-07-08 13:05:14 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2014/07/4289499
- Thread: https://ratatoskr.run/linux-api/2014/06/4283602/t.md

```text
On 8 July 2014 13:51, Christoph Hellwig [ref] wrote:
> Yeah, it won't work for an explicit directory - I was thinking of
> working relative to $CWD.

I think that would sacrifice far too much flexibility. Even without
Capsicum, it would be worthwhile to be able to wire up a static
seccomp-bpf filter to enforce constraints such as "you can open files
under fd#5 for reading, but you can only write to files under fd#6,
and you can't do any global lookups."

Meredydd
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
