]> www.infradead.org Git - users/hch/misc.git/commit
block: sed-opal: add ioctl IOC_OPAL_SET_SID_PW
authorGreg Joyce <gjoyce@linux.ibm.com>
Thu, 29 Aug 2024 17:56:11 +0000 (12:56 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:16:40 +0000 (08:16 -0600)
commitb21d948f4cc73e3296f2365c7afca721dd6893fa
tree3861d21c77ecb2804cf88826589e02f8b62b2484
parent69f407ee8dc0f9c09209c9883bd25cd8194e94a3
block: sed-opal: add ioctl IOC_OPAL_SET_SID_PW

After a SED drive is provisioned, there is no way to change the SID
password via the ioctl() interface. A new ioctl IOC_OPAL_SET_SID_PW
will allow the password to be changed. The valid current password is
required.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Link: https://lore.kernel.org/r/20240829175639.6478-2-gjoyce@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/sed-opal.c
include/linux/sed-opal.h
include/uapi/linux/sed-opal.h