Skip to content

Commit 2154aca

Browse files
committed
certs: make system keyring depend on built-in x509 parser
Commit e908862 ("certs: make system keyring depend on x509 parser") is not the right fix because x509_load_certificate_list() can be modular. The combination of CONFIG_SYSTEM_TRUSTED_KEYRING=y and CONFIG_X509_CERTIFICATE_PARSER=m still results in the following error: LD .tmp_vmlinux.kallsyms1 ld: certs/system_keyring.o: in function `load_system_certificate_list': system_keyring.c:(.init.text+0x8c): undefined reference to `x509_load_certificate_list' make: *** [Makefile:1169: vmlinux] Error 1 Fixes: e908862 ("certs: make system keyring depend on x509 parser") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: Adam Borowski <kilobyte@angband.pl>
1 parent 03764b3 commit 2154aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

certs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config SYSTEM_TRUSTED_KEYRING
4343
bool "Provide system-wide ring of trusted keys"
4444
depends on KEYS
4545
depends on ASYMMETRIC_KEY_TYPE
46-
depends on X509_CERTIFICATE_PARSER
46+
depends on X509_CERTIFICATE_PARSER = y
4747
help
4848
Provide a system keyring to which trusted keys can be added. Keys in
4949
the keyring are considered to be trusted. Keys may be added at will

0 commit comments

Comments
 (0)