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: |
Nayna Jain | 6cbdfb3 | 2021-04-09 10:35:07 -0400 | [diff] [blame] | 11 | __module_cert_start: |
Nayna Jain | 781a573 | 2021-04-22 21:16:02 -0400 | [diff] [blame] | 12 | #if defined(CONFIG_MODULE_SIG) || (defined(CONFIG_IMA_APPRAISE_MODSIG) \ |
| 13 | && defined(CONFIG_MODULES)) |
David Howells | cfc411e | 2015-08-14 15:20:41 +0100 | [diff] [blame] | 14 | .incbin "certs/signing_key.x509" |
David Woodhouse | 770f2b9 | 2015-07-20 21:16:34 +0100 | [diff] [blame] | 15 | #endif |
Nayna Jain | 6cbdfb3 | 2021-04-09 10:35:07 -0400 | [diff] [blame] | 16 | __module_cert_end: |
David Howells | cfc411e | 2015-08-14 15:20:41 +0100 | [diff] [blame] | 17 | .incbin "certs/x509_certificate_list" |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 18 | __cert_list_end: |
| 19 | |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 20 | #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 21 | .globl system_extra_cert |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 22 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 23 | system_extra_cert: |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 24 | .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0 |
| 25 | |
David Howells | 0d1db3e | 2016-02-29 14:44:30 +0000 | [diff] [blame] | 26 | .align 4 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 27 | .globl system_extra_cert_used |
| 28 | system_extra_cert_used: |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 29 | .int 0 |
| 30 | |
| 31 | #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */ |
| 32 | |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 33 | .align 8 |
Masahiro Yamada | c4df32c | 2018-08-19 07:34:47 +0900 | [diff] [blame] | 34 | .globl system_certificate_list_size |
| 35 | system_certificate_list_size: |
Hendrik Brueckner | 6222698 | 2013-12-05 14:48:22 +0100 | [diff] [blame] | 36 | #ifdef CONFIG_64BIT |
| 37 | .quad __cert_list_end - __cert_list_start |
| 38 | #else |
| 39 | .long __cert_list_end - __cert_list_start |
| 40 | #endif |
Nayna Jain | 6cbdfb3 | 2021-04-09 10:35:07 -0400 | [diff] [blame] | 41 | |
| 42 | .align 8 |
| 43 | .globl module_cert_size |
| 44 | module_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 |