Jan Luebbe
65166bccd0
kbuild: modinst: Fix build error when CONFIG_MODULE_SIG_KEY is a PKCS#11 URI
...
[ Upstream commit 22e46f6480e83bcf49b6d5e6b66c81872c97a902 ]
When CONFIG_MODULE_SIG_KEY is PKCS#11 URI (pkcs11:*), signing of modules
fails:
scripts/sign-file sha256 /.../linux/pkcs11:token=foo;object=bar;pin-value=1111 certs/signing_key.x509 /.../kernel/crypto/tcrypt.ko
Usage: scripts/sign-file [-dp] <hash algo> <key> <x509> <module> [<dest>]
scripts/sign-file -s <raw sig> <hash algo> <x509> <module> [<dest>]
First, we need to avoid adding the $(srctree)/ prefix to the URL.
Second, since the kconfig string values no longer include quotes, we need to add
them again when passing a PKCS#11 URI to sign-file. This avoids
splitting by the shell if the URI contains semicolons.
Fixes: 4db9c2e3d055 ("kbuild: stop using config_filename in scripts/Makefile.modsign")
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>
2023-02-09 11:28:11 +01:00
..
2023-02-01 08:34:49 +01:00
2022-05-08 01:33:07 -07:00
2022-10-14 22:32:52 +09:00
2022-08-07 21:30:36 +02:00
2022-09-27 10:36:16 -05:00
2022-08-21 02:47:48 +09:00
2022-06-10 14:51:36 +02:00
2022-08-07 10:03:24 -07:00
2022-05-24 16:33:20 +09:00
2022-11-02 17:32:05 +09:00
2022-08-21 02:47:36 +09:00
2022-11-17 17:51:45 +09:00
2022-09-20 14:12:25 -04:00
2023-02-01 08:34:37 +01:00
2022-09-28 09:02:06 +02:00
2022-05-08 03:16:59 +09:00
2021-09-03 08:17:20 +09:00
2022-09-29 04:40:16 +09:00
2018-07-18 01:18:05 +09:00
2022-07-17 17:31:40 -07:00
2019-06-05 17:37:11 +02:00
2022-08-25 11:49:14 -07:00
2018-06-28 13:36:39 +09:00
2022-09-28 09:02:20 +02:00
2021-09-08 11:50:28 -07:00
2022-09-29 04:40:15 +09:00
2020-02-25 03:35:16 -07:00
2021-08-10 09:13:25 +09:00
2021-09-19 10:13:03 +09:00
2022-10-12 11:00:22 -07:00
2022-07-27 21:18:00 +09:00
2022-05-08 03:16:59 +09:00
2021-08-05 20:55:39 +09:00
2021-05-18 11:09:59 +02:00
2021-01-04 10:38:11 +09:00
2022-01-20 08:52:54 +02:00
2022-09-28 09:01:40 +02:00
2022-09-11 21:55:05 -07:00
2021-01-01 12:26:39 -08:00
2020-09-04 18:19:37 +02:00
2021-01-22 06:34:44 +09:00
2021-10-26 09:42:29 -06:00
2020-03-17 08:59:03 +09:00
2019-06-05 17:37:07 +02:00
2022-08-29 13:58:47 +09:00
2019-06-05 17:37:10 +02:00
2022-11-16 10:42:10 +01:00
2018-03-26 02:01:24 +09:00
2020-01-27 14:25:06 -07:00
2021-03-08 13:19:05 +01:00
2018-06-25 23:21:13 +09:00
2022-06-26 06:15:05 +09:00
2021-09-03 08:17:21 +09:00
2022-05-08 01:33:07 -07:00
2021-01-14 08:21:09 -08:00
2022-09-28 09:02:06 +02:00
2022-09-28 09:02:45 +02:00
2022-04-24 10:38:44 +02:00
2019-05-24 17:36:45 +02:00
2022-06-30 12:22:17 -06:00
2022-04-29 14:38:00 -07:00
2019-05-30 11:26:39 -07:00
2022-10-10 12:00:45 -07:00
2022-07-27 21:18:00 +09:00
2022-05-11 21:45:53 +09:00
2022-09-28 09:02:06 +02:00
2021-05-17 12:10:03 +09:00
2022-10-10 12:00:45 -07:00
2022-09-29 02:00:29 +09:00
2022-09-28 09:02:20 +02:00
2022-06-13 11:07:45 -06:00
2021-04-25 05:14:26 +09:00
2021-10-15 11:25:13 +02:00
2022-10-03 03:52:58 +09:00
2022-09-28 09:02:20 +02:00
2021-03-15 19:20:48 +09:00
2022-10-15 05:22:29 +09:00
2022-03-21 08:13:03 -07:00
2022-05-08 03:17:00 +09:00
2022-09-29 04:40:16 +09:00
2022-09-28 09:02:20 +02:00
2021-03-15 19:20:48 +09:00
2022-10-10 12:00:45 -07:00
2022-08-16 12:25:53 -07:00
2021-03-15 19:20:48 +09:00
2022-09-28 09:02:20 +02:00
2021-09-24 16:13:35 -07:00
2020-08-10 01:32:59 +09:00
2021-12-09 16:42:27 -08:00
2022-10-03 14:03:19 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 12:00:45 -07:00
2023-02-09 11:28:11 +01:00
2022-10-28 00:19:40 +09:00
2022-11-24 09:27:57 +09:00
2022-05-08 01:33:07 -07:00
2022-01-20 08:52:55 +02:00
2020-05-17 18:52:01 +09:00
2022-10-03 03:52:58 +09:00
2022-10-03 03:52:58 +09:00
2019-06-05 17:37:10 +02:00
2022-11-09 18:41:16 +01:00
2022-09-29 04:40:15 +09:00
2022-10-03 03:51:58 +09:00
2022-09-26 10:13:13 -07:00
2021-04-25 05:22:42 +09:00
2022-06-08 20:14:13 +09:00
2022-06-05 06:20:57 +09:00
2022-05-12 10:08:43 -07:00
2022-02-22 14:32:44 -08:00
2022-02-02 11:19:33 +01:00
2020-03-26 15:08:27 -07:00
2022-05-11 21:46:38 +09:00
2021-03-02 17:27:18 -05:00
2021-06-18 09:09:17 -04:00
2022-03-07 13:54:59 +01:00
2022-08-12 18:39:43 -07:00
2022-09-28 09:02:06 +02:00
2022-09-28 09:02:06 +02:00
2022-01-08 18:03:57 +09:00
2020-12-08 23:30:04 +09:00
2022-08-03 23:56:20 +03:00
2022-06-03 20:09:27 +08:00
2022-01-18 10:17:18 -05:00
2022-06-01 09:32:45 -06:00
2022-05-18 15:34:33 +02:00
2022-05-18 15:35:42 +02:00
2022-03-22 15:57:00 -07:00
2022-07-07 12:47:34 -06:00
2020-12-08 23:30:04 +09:00
2022-06-03 20:09:27 +08:00
2021-07-09 04:00:39 +09:00
2021-08-10 09:13:25 +09:00
2021-07-09 04:00:39 +09:00
2022-07-01 10:32:30 +02:00
2022-02-13 16:50:06 -08:00
2021-06-08 13:09:34 +01:00
2018-11-30 14:45:01 -08:00
2021-05-03 17:23:06 -06:00
2021-08-10 09:13:25 +09:00
2020-06-06 23:42:01 +09:00