summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2025-08-13 11:43:50 +0200
committerAlexander Gordeev <agordeev@linux.ibm.com>2025-08-28 16:52:54 +0200
commit11aa54ba4cfa5390ea47c9a1fc62502abce1f6b9 (patch)
treeac83a14e20bf8b5a81a81c2643b20cd22c09f976 /rust/helpers/helpers.c
parentb3597eb51aad4a6e985c701c129bd7fc2cf0d682 (diff)
s390/pkey: Forward keygenflags to ep11_unwrapkey
The pkey ioctl PKEY_CLR2SECK2 describes in the pkey.h header file the parameter 'keygenflags' which is forwarded to the handler functions which actually deal with the clear key to secure key operation. The ep11 handler module function ep11_clr2keyblob() function receives this parameter but does not forward it to the underlying function ep11_unwrapkey() on invocation. So in the end the user of this ioctl could not forward additional key generation flags to the ep11 implementation and thus was unable to modify the key generation process in any way. So now call ep11_unwrapkey() with the real keygenflags instead of 0 and thus the user of this ioctl can for example via keygenflags provide valid combinations of XCP_BLOB_* flags. Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions