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 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 8 | .globl system_certificate_list |
| 9 | 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 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 18 | .globl system_extra_cert |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 19 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 20 | system_extra_cert: |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 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 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 24 | .globl system_extra_cert_used |
| 25 | system_extra_cert_used: |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 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 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 31 | .globl system_certificate_list_size |
| 32 | system_certificate_list_size: |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 33 | #ifdef CONFIG_64BIT |
| 34 | .quad __cert_list_end - __cert_list_start |
| 35 | #else |
| 36 | .long __cert_list_end - __cert_list_start |
| 37 | #endif |