]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme: identify-namespace without CAP_SYS_ADMIN
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 1 Nov 2022 09:43:07 +0000 (10:43 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Nov 2022 09:50:30 +0000 (10:50 +0100)
commite4fbcf32c860f98103ca7f1dc8c0dc69e2219ec6
tree9ea6c97adb7f995c50d863bdea264c7bd6bfd917
parent855b7717f44b13e0990aa5ad36bbf9aa35051516
nvme: identify-namespace without CAP_SYS_ADMIN

Allow all identify-namespace variants (CNS 00h, 05h and 08h) without
requiring CAP_SYS_ADMIN. The information (retrieved using id-ns) is
needed to form IO commands for passthrough interface.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/ioctl.c