Skip to content

add ioctl IOC_OPAL_SET_SID_PW

[email protected] linux-block 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/1block: sed-opal: add ioctl IOC_OPAL_SET_SID_PWblock/sed-opal.c include/linux/sed-opal.h include/uapi/linux/sed-opal.h+28 -00 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchDaniel Wagner
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] add ioctl IOC_OPAL_SET_SID_PW

From: Greg Joyce <[email protected]>

This version does not reflect any code changes since there have been no comments on the patchset since the original submission on 13 Aug 2024.

As requersted, it does contain an expanded description of the patchset and a pointer to the CLI change. Thanks
to Daniel Wagner and Michal Suchánek for the feedback.

SED Opal allows a password for the SID user as well as the Admin1 user. If a CLI wishes to change the password of both users there is currently no way to accomplish that using the SED Opal block driver ioctls. The Admin1 password can be changes using the IOC_OPAL_SET_PW ioctl but the SID password remains the password that was set when the SED drive was provisioned (ownership).

To allow a CLI to change the SID password, a new ioctl IOC_OPAL_SET_SID_PW has been created. The valid current password is required to change the SID password.

The nvme-cli has been changed to use this ioctl such that the "sed password" can change both the Admin1 and SID passwords. The pull request can be found here:

	https://github.com/linux-nvme/nvme-cli/pull/2467

Greg Joyce (1):
block: sed-opal: add ioctl IOC_OPAL_SET_SID_PW

 block/sed-opal.c              | 26 ++++++++++++++++++++++++++
 include/linux/sed-opal.h      |  1 +
 include/uapi/linux/sed-opal.h |  1 +
 3 files changed, 28 insertions(+)
Signature · 1 line
[email protected]