Skip to content

Granular CAP_SYS_ADMIN

Kanchan Joshi linux-nvme 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v21 patch 1 replySuperseded

Changes in v4 from the cover letter

================
- Patch 2: remove two comments (Chaitanya)
- collect reviewed-by

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme: fine-granular CAP_SYS_ADMIN for nvme io commandsdrivers/nvme/host/ioctl.c include/linux/nvme.h+65 -330 replies
2/2nvme: identify-namespace without CAP_SYS_ADMINdrivers/nvme/host/ioctl.c+10 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKeith BuschJens AxboeChaitanya Kulkarni
SeriesR-b
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/2] Granular CAP_SYS_ADMIN

Hi,

The series enables general access for passthrough IO if sysadmin wants so.

Patch 1: for io commands. It implements the shift to file-mode based policy.
Patch 2: allows identify-namespace command (based on ALPSS feedback).

Changes since v3:
================
- Patch 2: remove two comments (Chaitanya)
- collect reviewed-by

Changes since v2:
================
- Add patch 2 that allows identify-ns
- Patch 1: Move nvme_cmd_allowed check further down, so that we can use CNS values for decision making in patch 2
- Patch 1: invert if condition (Sagi)

Changes since v1:
================
- Move nvme_cmd_allowed check at a place that allows using nvme_is_write helper (hch)
- Keep everything into single patch (chaitanya, hch)
- Comments cleanup (hch, chaitanya)
- Part of cover-letter moved to commit-description

Kanchan Joshi (2):
nvme: fine-granular CAP_SYS_ADMIN for nvme io commands
nvme: identify-namespace without CAP_SYS_ADMIN

 drivers/nvme/host/ioctl.c | 105 ++++++++++++++++++++++++++------------
 include/linux/nvme.h      |   1 +
 2 files changed, 73 insertions(+), 33 deletions(-)
Signature · 1 line
2.25.1