]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/uvdevice: Add Retrieve Secret IOCTL
authorSteffen Eiden <seiden@linux.ibm.com>
Thu, 24 Oct 2024 06:26:35 +0000 (08:26 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:16 +0000 (11:17 +0100)
commit99961593e364ad363a765b5404a93436ed55c1c9
tree0370ab023b218bc727ba69f002d15f70283d5b72
parent7c9137af2042e0d67aae0ccd84afc8ffc4b0d95d
s390/uvdevice: Add Retrieve Secret IOCTL

Add a new IOCL number to support the new Retrieve Secret UVC for
user-space.
User-space provides the index of the secret (u16) to retrieve.
The uvdevice calls the Retrieve Secret UVC and copies the secret into
the provided buffer if it fits. To get the secret type, index, and size
user-space needs to call the List UVC first.

Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Link: https://lore.kernel.org/r/20241024062638.1465970-4-seiden@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/uapi/asm/uvdevice.h
drivers/s390/char/uvdevice.c