With OpenSSL 3 and newer, sign-file ignores KBUILD_SIGN_PIN for PKCS#11
keys. Document passing the PIN in the URI instead.
Signed-off-by: David Seifert <so…@gentoo.org>
---
eclass/kernel-build.eclass | 5 +++++
eclass/linux-mod-r1.eclass | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 41777d0fc1c5a..5e23a074cd372 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -125,6 +125,11 @@ REQUIRED_USE="secureboot? ( modules-sign )"
# eclass unsets the variable after use to mitigate the issue (notably
# for shared binary packages), but use this with care.
#
+# With OpenSSL 3 and newer, sign-file loads PKCS#11 keys through the
+# "pkcs11" provider (dev-libs/pkcs11-provider) and ignores
+# KBUILD_SIGN_PIN for them. Pass the PIN in the URI (pin-value= or
+# pin-source=) or in the provider configuration instead.
+#
# Default if unset: certs/signing_key.pem
# @ECLASS_VARIABLE: MODULES_SIGN_CERT
diff --git a/eclass/linux-mod-r1.eclass b/eclass/linux-mod-r1.eclass
index 5049b90ac7b68..6e8158b40687f 100644
--- a/eclass/linux-mod-r1.eclass
+++ b/eclass/linux-mod-r1.eclass
@@ -236,6 +236,11 @@ fi
# eclass unsets the variable after use to mitigate the issue (notably
# for shared binary packages), but use this with care.
#
+# With OpenSSL 3 and newer, sign-file loads PKCS#11 keys through the
+# "pkcs11" provider (dev-libs/pkcs11-provider) and ignores
+# KBUILD_SIGN_PIN for them. Pass the PIN in the URI (pin-value= or
+# pin-source=) or in the provider configuration instead.
+#
# Default if unset: kernel CONFIG_MODULE_SIG_KEY's value which itself
# defaults to certs/signing_key.pem
--
2.56.1