linux/certs/system_certificates.S
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#include <linux/export.h>
   3#include <linux/init.h>
   4
   5        __INITRODATA
   6
   7        .align 8
   8        .globl system_certificate_list
   9system_certificate_list:
  10__cert_list_start:
  11__module_cert_start:
  12#if defined(CONFIG_MODULE_SIG) || (defined(CONFIG_IMA_APPRAISE_MODSIG) \
  13                               && defined(CONFIG_MODULES))
  14        .incbin "certs/signing_key.x509"
  15#endif
  16__module_cert_end:
  17        .incbin "certs/x509_certificate_list"
  18__cert_list_end:
  19
  20#ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE
  21        .globl system_extra_cert
  22        .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE
  23system_extra_cert:
  24        .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0
  25
  26        .align 4
  27        .globl system_extra_cert_used
  28system_extra_cert_used:
  29        .int 0
  30
  31#endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */
  32
  33        .align 8
  34        .globl system_certificate_list_size
  35system_certificate_list_size:
  36#ifdef CONFIG_64BIT
  37        .quad __cert_list_end - __cert_list_start
  38#else
  39        .long __cert_list_end - __cert_list_start
  40#endif
  41
  42        .align 8
  43        .globl module_cert_size
  44module_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
  50