]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
integrity/platform_certs: Allow loading of keys in the static key management mode
authorSrish Srinivasan <ssrish@linux.ibm.com>
Tue, 10 Jun 2025 21:19:07 +0000 (02:49 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 9 Jul 2025 03:46:18 +0000 (09:16 +0530)
commitbde5b1a1553c5e96367afd4da64de947ae4b6f84
treef1f1536836f2690f605cb38318b84dedc74c78b5
parentc1d96cd9a10bfea6aea71aaca6a161d98320edc5
integrity/platform_certs: Allow loading of keys in the static key management mode

On PLPKS enabled PowerVM LPAR, there is no provision to load signed
third-party kernel modules when the key management mode is static. This
is because keys from secure boot secvars are only loaded when the key
management mode is dynamic.

Allow loading of the trustedcadb and moduledb keys even in the static
key management mode, where the secvar format string takes the form
"ibm,plpks-sb-v0".

Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
Tested-by: R Nageswara Sastry <rnsastry@linux.ibm.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Nayna Jain <nayna@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250610211907.101384-4-ssrish@linux.ibm.com
security/integrity/platform_certs/load_powerpc.c