]> git.ipfire.org Git - thirdparty/linux.git/commit - block/sed-opal.c
block: sed-opal: keyring support for SED keys
authorGreg Joyce <gjoyce@linux.vnet.ibm.com>
Fri, 21 Jul 2023 21:15:34 +0000 (16:15 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Aug 2023 17:10:26 +0000 (11:10 -0600)
commit3bfeb61256643281ac4be5b8a57e9d9da3db4335
tree71ffd9e63c62a0b114a72cd258e107db66473c7b
parent5c82efc1aee8eb0919aa67a0d2559de5a326bd7c
block: sed-opal: keyring support for SED keys

Extend the SED block driver so it can alternatively
obtain a key from a sed-opal kernel keyring. The SED
ioctls will indicate the source of the key, either
directly in the ioctl data or from the keyring.

This allows the use of SED commands in scripts such as
udev scripts so that drives may be automatically unlocked
as they become available.

Signed-off-by: Greg Joyce <gjoyce@linux.vnet.ibm.com>
Reviewed-by: Jonathan Derrick <jonathan.derrick@linux.dev>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20230721211534.3437070-4-gjoyce@linux.vnet.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig
block/sed-opal.c
include/linux/sed-opal.h
include/uapi/linux/sed-opal.h