Re: [PATCH] fs: Reorder inode_owner_or_capable() to avoid needless

From: Al Viro
Date: Thu Jun 29 2017 - 20:06:51 EST


On Tue, Jun 20, 2017 at 02:40:24PM -0700, Kees Cook 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).

Applied