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

From: Jori Koolstra

Date: Wed Dec 02 2026 - 09:00:10 EST



> Op 30-11-2026 16:10 CET schreef Christian Brauner <brauner@xxxxxxxxxx>:
>
>
> 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.

OK, perfect. Thanks, Christian.