[PATCH] nvme-ioctl: move capable() admin check to the end

Christoph Hellwig hch at lst.de
Mon Dec 4 06:35:52 PST 2023


On Mon, Dec 04, 2023 at 07:33:01AM -0700, Keith Busch wrote:
> On Mon, Dec 04, 2023 at 09:30:34AM +0100, Christoph Hellwig wrote:
> > On Thu, Nov 30, 2023 at 12:19:19PM -0800, Keith Busch wrote:
> > > From: Keith Busch <kbusch at kernel.org>
> > > 
> > > This can be an expensive call on some distros.
> > 
> > Huh?  How would a distro matter for kernel code?
> 
> Security monitoring: audit, LSM, and bpf hooks all make this function
> undesirable for a fast path check.

So what matters is kernel configuration, not "distro".



More information about the Linux-nvme mailing list