Messages in this thread | | | Date | Mon, 3 Nov 2014 09:05:51 -0800 | Subject | Re: [RFC PATCH] fs: allow open(dir, O_TMPFILE|..., 0) with mode 0 | From | Linus Torvalds <> |
| |
On Mon, Nov 3, 2014 at 12:34 AM, Christoph Hellwig <hch@infradead.org> wrote: > > That doesn't help because we explicitly reject O_RDONLY when combined > with O_TMPFILE.
You obviously cannot actually have a read-only file descriptor with O_TMPFILE, unless all you care about is a zero-sized file with no contents.
That's why people are talking about things like downgrading the file *after* filling it, using sealing.
Linus
| |