system_certificates.S 917 Bytes
Newer Older
1
#include <linux/export.h>
2
#include <linux/init.h>
3

4
	__INITRODATA
5

6
	.align 8
7 8
	.globl VMLINUX_SYMBOL(system_certificate_list)
VMLINUX_SYMBOL(system_certificate_list):
9
__cert_list_start:
10
#ifdef CONFIG_MODULE_SIG
11
	.incbin "certs/signing_key.x509"
12
#endif
13
	.incbin "certs/x509_certificate_list"
14 15
__cert_list_end:

16 17 18 19 20 21
#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
	.globl VMLINUX_SYMBOL(system_extra_cert)
	.size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
VMLINUX_SYMBOL(system_extra_cert):
	.fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0

22
	.align 4
23 24 25 26 27 28
	.globl VMLINUX_SYMBOL(system_extra_cert_used)
VMLINUX_SYMBOL(system_extra_cert_used):
	.int 0

#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */

29 30 31 32 33 34 35 36
	.align 8
	.globl VMLINUX_SYMBOL(system_certificate_list_size)
VMLINUX_SYMBOL(system_certificate_list_size):
#ifdef CONFIG_64BIT
	.quad __cert_list_end - __cert_list_start
#else
	.long __cert_list_end - __cert_list_start
#endif