[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrXNPKtWVZFscnj-bZ6xx_x-K5fZ4XL1amwxAy_qGCQdQw@mail.gmail.com>
Date: Wed, 21 Jun 2017 07:55:26 -0700
From: Andy Lutomirski <luto@...nel.org>
To: Kees Cook <keescook@...omium.org>
Cc: Alexander Viro <viro@...iv.linux.org.uk>,
Solar Designer <solar@...nwall.com>,
"Serge E. Hallyn" <serge@...lyn.com>,
Andy Lutomirski <luto@...nel.org>,
Linux FS Devel <linux-fsdevel@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] fs: Reorder inode_owner_or_capable() to avoid needless
On Tue, Jun 20, 2017 at 2:40 PM, Kees Cook <keescook@...omium.org> wrote:
> Checking for capabilities should be the last operation when performing
> access control tests so that PF_SUPERPRIV is set only when it was required
> for success (implying that the capability was needed for the operation).
>
Reviewed-by: Andy Lutomirski <luto@...nel.org>
Powered by blists - more mailing lists