David Howells | b56e5a1 | 2013-08-30 16:07:30 +0100 | [diff] [blame] | 1 | #include <linux/export.h> |
| 2 | #include <linux/init.h> |
| 3 | |
David Howells | b56e5a1 | 2013-08-30 16:07:30 +0100 | [diff] [blame] | 4 | __INITRODATA |
| 5 | |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 6 | .align 8 |
Chen Gang | 6ef4d2e | 2013-10-30 09:11:28 +0800 | [diff] [blame] | 7 | .globl VMLINUX_SYMBOL(system_certificate_list) |
| 8 | VMLINUX_SYMBOL(system_certificate_list): |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 9 | __cert_list_start: |
David Woodhouse | 770f2b9 | 2015-07-20 21:16:34 +0100 | [diff] [blame] | 10 | #ifdef CONFIG_MODULE_SIG |
David Howells | cfc411e | 2015-08-14 15:20:41 +0100 | [diff] [blame] | 11 | .incbin "certs/signing_key.x509" |
David Woodhouse | 770f2b9 | 2015-07-20 21:16:34 +0100 | [diff] [blame] | 12 | #endif |
David Howells | cfc411e | 2015-08-14 15:20:41 +0100 | [diff] [blame] | 13 | .incbin "certs/x509_certificate_list" |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 14 | __cert_list_end: |
| 15 | |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 16 | #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE |
| 17 | .globl VMLINUX_SYMBOL(system_extra_cert) |
| 18 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE |
| 19 | VMLINUX_SYMBOL(system_extra_cert): |
| 20 | .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0 |
| 21 | |
David Howells | 0d1db3e | 2016-02-29 14:44:30 +0000 | [diff] [blame] | 22 | .align 4 |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 23 | .globl VMLINUX_SYMBOL(system_extra_cert_used) |
| 24 | VMLINUX_SYMBOL(system_extra_cert_used): |
| 25 | .int 0 |
| 26 | |
| 27 | #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */ |
| 28 | |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 29 | .align 8 |
| 30 | .globl VMLINUX_SYMBOL(system_certificate_list_size) |
| 31 | VMLINUX_SYMBOL(system_certificate_list_size): |
| 32 | #ifdef CONFIG_64BIT |
| 33 | .quad __cert_list_end - __cert_list_start |
| 34 | #else |
| 35 | .long __cert_list_end - __cert_list_start |
| 36 | #endif |