Loading...
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
9system_certificate_list:
10__cert_list_start:
11__module_cert_start:
12#if defined(CONFIG_MODULE_SIG) || (defined(CONFIG_IMA_APPRAISE_MODSIG) \
13 && defined(CONFIG_MODULES))
14 .incbin "certs/signing_key.x509"
15#endif
16__module_cert_end:
17 .incbin "certs/x509_certificate_list"
18__cert_list_end:
19
20#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
21 .globl system_extra_cert
22 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
23system_extra_cert:
24 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
25
26 .align 4
27 .globl system_extra_cert_used
28system_extra_cert_used:
29 .int 0
30
31#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
32
33 .align 8
34 .globl system_certificate_list_size
35system_certificate_list_size:
36#ifdef CONFIG_64BIT
37 .quad __cert_list_end - __cert_list_start
38#else
39 .long __cert_list_end - __cert_list_start
40#endif
41
42 .align 8
43 .globl module_cert_size
44module_cert_size:
45#ifdef CONFIG_64BIT
46 .quad __module_cert_end - __module_cert_start
47#else
48 .long __module_cert_end - __module_cert_start
49#endif
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
9system_certificate_list:
10__cert_list_start:
11__module_cert_start:
12 .incbin "certs/signing_key.x509"
13__module_cert_end:
14 .incbin "certs/x509_certificate_list"
15__cert_list_end:
16
17#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
18 .globl system_extra_cert
19 .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
20system_extra_cert:
21 .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
22
23 .align 4
24 .globl system_extra_cert_used
25system_extra_cert_used:
26 .int 0
27
28#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
29
30 .align 8
31 .globl system_certificate_list_size
32system_certificate_list_size:
33#ifdef CONFIG_64BIT
34 .quad __cert_list_end - __cert_list_start
35#else
36 .long __cert_list_end - __cert_list_start
37#endif
38
39 .align 8
40 .globl module_cert_size
41module_cert_size:
42#ifdef CONFIG_64BIT
43 .quad __module_cert_end - __module_cert_start
44#else
45 .long __module_cert_end - __module_cert_start
46#endif