Re: [RFC PATCH] fs: allow open(dir, O_TMPFILE|..., 0) with mode 0

From: Linus Torvalds
Date: Wed Nov 05 2014 - 12:10:18 EST


On Wed, Nov 5, 2014 at 7:32 AM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> I have no idea whether it's a security risk, but it's a serious "wtf?!?" risk.

Yeah. And considering that the only apparently user of this read-only
O_TMPFILE interface doesn't actually need it anyway because it carries
around the whole "read-only to the client" information independently,
I think the issue is moot. We don't need zero-sized read-only
O_TMPFILE files.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/