Re: [PATCH v8 07/12] vfs: short-circuit MAY_WRITE access for O_DIRECTORY opens

From: Christian Brauner

Date: Mon Nov 30 2026 - 10:10:12 EST


On Wed, Nov 25, 2026 at 11:29:26AM +0100, Jori Koolstra wrote:
> This is best probably. The counter is that I wanted to change errnos as little
> as possible. Now you get at least something that could already happen when
> you did a normal open(O_DIRECTORY). Were this designed from the start -EINVAL
> is obviously what is needed here.
>
> I dunno, not sure what other people think.

EINVAL is fine with me. It's an invalid flag combination after allafter
all. I'll fold that in and update the selftest.