summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2023-01-31 09:43:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 11:28:11 +0100
commit10282d9daaf74f614b2ecbb71ad8b0a6c38bdf66 (patch)
tree0aa35389117f92f6a6133012b9af50a363d4aa50 /certs
parent71ebd83f320e6df9f4d1513e4998752756a2f917 (diff)
downloadlinux-stable-10282d9daaf74f614b2ecbb71ad8b0a6c38bdf66.tar.gz
linux-stable-10282d9daaf74f614b2ecbb71ad8b0a6c38bdf66.tar.bz2
linux-stable-10282d9daaf74f614b2ecbb71ad8b0a6c38bdf66.zip
certs: Fix build error when PKCS#11 URI contains semicolon
[ Upstream commit b1c3d2beed8ef3699fab106340e33a79052df116 ] When CONFIG_MODULE_SIG_KEY is PKCS#11 URI (pkcs11:*) and contains a semicolon, signing_key.x509 fails to build: certs/extract-cert pkcs11:token=foo;object=bar;pin-value=1111 certs/signing_key.x509 Usage: extract-cert <source> <dest> Add quotes to the extract-cert argument to avoid splitting by the shell. This approach was suggested by Masahiro Yamada <masahiroy@kernel.org>. Fixes: 129ab0d2d9f3 ("kbuild: do not quote string values in include/config/auto.conf") Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'certs')
-rw-r--r--certs/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/certs/Makefile b/certs/Makefile
index 9486ed924731..799ad7b9e68a 100644
--- a/certs/Makefile
+++ b/certs/Makefile
@@ -23,8 +23,8 @@ $(obj)/blacklist_hash_list: $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST) FORCE
targets += blacklist_hash_list
quiet_cmd_extract_certs = CERT $@
- cmd_extract_certs = $(obj)/extract-cert $(extract-cert-in) $@
-extract-cert-in = $(or $(filter-out $(obj)/extract-cert, $(real-prereqs)),"")
+ cmd_extract_certs = $(obj)/extract-cert "$(extract-cert-in)" $@
+extract-cert-in = $(filter-out $(obj)/extract-cert, $(real-prereqs))
$(obj)/system_certificates.o: $(obj)/x509_certificate_list