From: Masahiro Yamada Date: Mon, 12 Sep 2022 06:52:10 +0000 (+0900) Subject: certs: make system keyring depend on built-in x509 parser X-Git-Tag: baikal/aarch64/sdk6.1~3057^2~2 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=5e78c8fb85bf602e13b4fa9d585bf69630fe542e;p=kernel.git certs: make system keyring depend on built-in x509 parser Commit 1f1c96532df8 ("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: 1f1c96532df8 ("certs: make system keyring depend on x509 parser") Signed-off-by: Masahiro Yamada Tested-by: Adam Borowski --- diff --git a/certs/Kconfig b/certs/Kconfig index bf9b511573d75..1f109b0708778 100644 --- a/certs/Kconfig +++ b/certs/Kconfig @@ -43,7 +43,7 @@ config SYSTEM_TRUSTED_KEYRING bool "Provide system-wide ring of trusted keys" depends on KEYS depends on ASYMMETRIC_KEY_TYPE - depends on X509_CERTIFICATE_PARSER + depends on X509_CERTIFICATE_PARSER = y help Provide a system keyring to which trusted keys can be added. Keys in the keyring are considered to be trusted. Keys may be added at will