]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/uv: Retrieve UV secrets support
authorSteffen Eiden <seiden@linux.ibm.com>
Thu, 24 Oct 2024 08:41:07 +0000 (10:41 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:16 +0000 (11:17 +0100)
commit7c9137af2042e0d67aae0ccd84afc8ffc4b0d95d
treee82d67f864bbac6b80910bbd0c0c62398cd19620
parentda59c71cc727cb86af0599058bcb599d3fb5c50a
s390/uv: Retrieve UV secrets support

Provide a kernel API to retrieve secrets from the UV secret store.
Add two new functions:
* `uv_get_secret_metadata` - get metadata for a given secret identifier
* `uv_retrieve_secret` - get the secret value for the secret index

With those two functions one can extract the secret for a given secret
id, if the secret is retrievable.

Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Link: https://lore.kernel.org/r/20241024084107.2418186-1-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/asm/uv.h
arch/s390/kernel/uv.c