ima: enable loading of build time generated key on .ima keyring
[linux-2.6-block.git] / certs / system_certificates.S
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
b92021b0 2#include <linux/export.h>
b56e5a17 3#include <linux/init.h>
919aa45e 4
b56e5a17 5 __INITRODATA
919aa45e 6
62226983 7 .align 8
c4df32c8
MY
8 .globl system_certificate_list
9system_certificate_list:
62226983 10__cert_list_start:
6cbdfb3d
NJ
11__module_cert_start:
12#if defined(CONFIG_MODULE_SIG) || defined(CONFIG_IMA_APPRAISE_MODSIG)
cfc411e7 13 .incbin "certs/signing_key.x509"
770f2b98 14#endif
6cbdfb3d 15__module_cert_end:
cfc411e7 16 .incbin "certs/x509_certificate_list"
62226983
HB
17__cert_list_end:
18
c4c36105 19#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
c4df32c8 20 .globl system_extra_cert
c4c36105 21 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
c4df32c8 22system_extra_cert:
c4c36105
MK
23 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
24
0d1db3e3 25 .align 4
c4df32c8
MY
26 .globl system_extra_cert_used
27system_extra_cert_used:
c4c36105
MK
28 .int 0
29
30#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
31
62226983 32 .align 8
c4df32c8
MY
33 .globl system_certificate_list_size
34system_certificate_list_size:
62226983
HB
35#ifdef CONFIG_64BIT
36 .quad __cert_list_end - __cert_list_start
37#else
38 .long __cert_list_end - __cert_list_start
39#endif
6cbdfb3d
NJ
40
41 .align 8
42 .globl module_cert_size
43module_cert_size:
44#ifdef CONFIG_64BIT
45 .quad __module_cert_end - __module_cert_start
46#else
47 .long __module_cert_end - __module_cert_start
48#endif