diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-02-18 07:46:33 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-03-03 02:16:19 +0300 |
commit | 6ce019f73d52513239314e75376a5ca622aa3632 (patch) | |
tree | d54854bb6f18328f11c897196cfec89e6c3762b6 /certs/system_certificates.S | |
parent | d4c858643263cfde13f7d937eaff95c2ed87cdf1 (diff) | |
download | linux-6ce019f73d52513239314e75376a5ca622aa3632.tar.xz |
certs: include certs/signing_key.x509 unconditionally
I do not see much sense in the #if conditional in system_certificates.S;
even if the condition is true, there exists no signing key when
CONFIG_MODULE_SIG_KEY="".
So, certs/Makefile generates empty certs/signing_key.x509 in such a
case. We can always do this, irrespective of CONFIG_MODULE_SIG or
(CONFIG_IMA_APPRAISE_MODSIG && CONFIG_MODULES).
We only need to check CONFIG_MODULE_SIG_KEY, then both *.S and Makefile
will become much simpler.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'certs/system_certificates.S')
-rw-r--r-- | certs/system_certificates.S | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/certs/system_certificates.S b/certs/system_certificates.S index e1645e6f4d97..003e25d4a17e 100644 --- a/certs/system_certificates.S +++ b/certs/system_certificates.S @@ -9,10 +9,7 @@ system_certificate_list: __cert_list_start: __module_cert_start: -#if defined(CONFIG_MODULE_SIG) || (defined(CONFIG_IMA_APPRAISE_MODSIG) \ - && defined(CONFIG_MODULES)) .incbin "certs/signing_key.x509" -#endif __module_cert_end: .incbin "certs/x509_certificate_list" __cert_list_end: |