ima: enable loading of build time generated key on .ima keyring
[linux-2.6-microblaze.git] / certs / system_certificates.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/export.h>
3 #include <linux/init.h>
4
5         __INITRODATA
6
7         .align 8
8         .globl system_certificate_list
9 system_certificate_list:
10 __cert_list_start:
11 __module_cert_start:
12 #if defined(CONFIG_MODULE_SIG) || defined(CONFIG_IMA_APPRAISE_MODSIG)
13         .incbin "certs/signing_key.x509"
14 #endif
15 __module_cert_end:
16         .incbin "certs/x509_certificate_list"
17 __cert_list_end:
18
19 #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
20         .globl system_extra_cert
21         .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
22 system_extra_cert:
23         .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
24
25         .align 4
26         .globl system_extra_cert_used
27 system_extra_cert_used:
28         .int 0
29
30 #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
31
32         .align 8
33         .globl system_certificate_list_size
34 system_certificate_list_size:
35 #ifdef CONFIG_64BIT
36         .quad __cert_list_end - __cert_list_start
37 #else
38         .long __cert_list_end - __cert_list_start
39 #endif
40
41         .align 8
42         .globl module_cert_size
43 module_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