]> 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)
commit21a6b7d54d18b04d4774efd5cf13ae570c54930c
tree2f88161538f8b604971cb989f46d706239e7bd05
parenta5742103b1b5b0bbabbaeb6a0906cd6ebaa069db
nvme: restrict management ioctls to admin

commit aef828b0db7ea4009df4246f5ac965c9499410c5 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