Article View: linux.gentoo.dev
Article #236[gentoo-dev] [PATCH 6/6] kernel-build.eclass, linux-mod-r1.eclass: KBUILD_SIGN_PIN is PEM only
From: David Seifert
Date: Tue, 01 Dec 2026 16:00
Date: Tue, 01 Dec 2026 16:00
43 lines
2813 bytes
2813 bytes
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 <soap@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
Technical Details
Message-ID:
<O5yqR-fmyc-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O5yqR-fmyc-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: David Seifert <soap@gentoo.org> Newsgroups: linux.gentoo.dev Subject: [gentoo-dev] [PATCH 6/6] kernel-build.eclass, linux-mod-r1.eclass: KBUILD_SIGN_PIN is PEM only Date: Tue, 01 Dec 2026 17:00:01 +0100 Message-ID: <O5yqR-fmyc-7@gated-at.bofh.it> References: <O5yqR-fmyc-3@gated-at.bofh.it> X-Mailer: git-send-email 2.56.1 List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org> Reply-To: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Approved: robomod@news.nic.it Lines: 43 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: David Seifert <soap@gentoo.org> X-Original-Date: Tue, 1 Dec 2026 16:49:24 +0100 X-Original-Message-ID: <20261201154924.70252-6-soap@gentoo.org> X-Original-References: <20261201154924.70252-1-soap@gentoo.org>