Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. config INTEGRITY
  4. bool "Integrity subsystem"
  5. depends on SECURITY
  6. default y
  7. help
  8. This option enables the integrity subsystem, which is comprised
  9. of a number of different components including the Integrity
  10. Measurement Architecture (IMA), Extended Verification Module
  11. (EVM), IMA-appraisal extension, digital signature verification
  12. extension and audit measurement log support.
  13. Each of these components can be enabled/disabled separately.
  14. Refer to the individual components for additional details.
  15. if INTEGRITY
  16. config INTEGRITY_SIGNATURE
  17. bool "Digital signature verification using multiple keyrings"
  18. default n
  19. select KEYS
  20. select SIGNATURE
  21. help
  22. This option enables digital signature verification support
  23. using multiple keyrings. It defines separate keyrings for each
  24. of the different use cases - evm, ima, and modules.
  25. Different keyrings improves search performance, but also allow
  26. to "lock" certain keyring to prevent adding new keys.
  27. This is useful for evm and module keyrings, when keys are
  28. usually only added from initramfs.
  29. config INTEGRITY_ASYMMETRIC_KEYS
  30. bool "Enable asymmetric keys support"
  31. depends on INTEGRITY_SIGNATURE
  32. default n
  33. select ASYMMETRIC_KEY_TYPE
  34. select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  35. select CRYPTO_RSA
  36. select X509_CERTIFICATE_PARSER
  37. help
  38. This option enables digital signature verification using
  39. asymmetric keys.
  40. config INTEGRITY_TRUSTED_KEYRING
  41. bool "Require all keys on the integrity keyrings be signed"
  42. depends on SYSTEM_TRUSTED_KEYRING
  43. depends on INTEGRITY_ASYMMETRIC_KEYS
  44. default y
  45. help
  46. This option requires that all keys added to the .ima and
  47. .evm keyrings be signed by a key on the system trusted
  48. keyring.
  49. config INTEGRITY_PLATFORM_KEYRING
  50. bool "Provide keyring for platform/firmware trusted keys"
  51. depends on INTEGRITY_ASYMMETRIC_KEYS
  52. depends on SYSTEM_BLACKLIST_KEYRING
  53. help
  54. Provide a separate, distinct keyring for platform trusted keys, which
  55. the kernel automatically populates during initialization from values
  56. provided by the platform for verifying the kexec'ed kerned image
  57. and, possibly, the initramfs signature.
  58. config LOAD_UEFI_KEYS
  59. depends on INTEGRITY_PLATFORM_KEYRING
  60. depends on EFI
  61. def_bool y
  62. config LOAD_IPL_KEYS
  63. depends on INTEGRITY_PLATFORM_KEYRING
  64. depends on S390
  65. def_bool y
  66. config LOAD_PPC_KEYS
  67. bool "Enable loading of platform and blacklisted keys for POWER"
  68. depends on INTEGRITY_PLATFORM_KEYRING
  69. depends on PPC_SECURE_BOOT
  70. default y
  71. help
  72. Enable loading of keys to the .platform keyring and blacklisted
  73. hashes to the .blacklist keyring for powerpc based platforms.
  74. config INTEGRITY_AUDIT
  75. bool "Enables integrity auditing support "
  76. depends on AUDIT
  77. default y
  78. help
  79. In addition to enabling integrity auditing support, this
  80. option adds a kernel parameter 'integrity_audit', which
  81. controls the level of integrity auditing messages.
  82. 0 - basic integrity auditing messages (default)
  83. 1 - additional integrity auditing messages
  84. Additional informational integrity auditing messages would
  85. be enabled by specifying 'integrity_audit=1' on the kernel
  86. command line.
  87. source "security/integrity/ima/Kconfig"
  88. source "security/integrity/evm/Kconfig"
  89. endif # if INTEGRITY