]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: restrict management ioctls to admin
authorKeith Busch <kbusch@kernel.org>
Thu, 22 Sep 2022 14:54:06 +0000 (07:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:05 +0000 (11:23 +0100)
commitccac82b51644ae3c519f14a9ce87f4c2d199b01c
tree2f88161538f8b604971cb989f46d706239e7bd05
parent8e064c6dc99c1c65084f8a8c11cfec0193f86f7e
nvme: restrict management ioctls to admin

commit c0393ef282ed49a7c8955a6f12e9803773568b84 upstream.

The passthrough commands already have this restriction, but the other
operations do not. Require the same capabilities for all users as all of
these operations, which include resets and rescans, can be disruptive.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
drivers/nvme/host/core.c