[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHk-=wjBT80kcCTh8fpuYBr6D7O_THew4-KTr2jeMhYfoCd9hg@mail.gmail.com>
Date: Mon, 8 Jun 2020 12:18:18 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Rasmus Villemoes <linux@...musvillemoes.dk>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH resend] fs/namei.c: micro-optimize acl_permission_check
On Sun, Jun 7, 2020 at 7:05 PM Al Viro <viro@...iv.linux.org.uk> wrote:
>
> return mask & deny ? -EACCES : 0;
I agree that 'deny' would be simpler to read here, but in other places
it would look odd. ie the IS_POSIXACL() thing that checks for "are
group bits set" still wants the mode.
And I'd hate to have us use code that then mixes 'deny' and 'mode'
when they are directly related to each other.
Anyway, I merged the patch as-is, I guess we can make future changes
to this if you feel strongly about it.
Linus
Powered by blists - more mailing lists