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