Kconfig 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # IBM Integrity Measurement Architecture
  2. #
  3. config IMA
  4. bool "Integrity Measurement Architecture(IMA)"
  5. depends on SECURITY
  6. select INTEGRITY
  7. select SECURITYFS
  8. select CRYPTO
  9. select CRYPTO_HMAC
  10. select CRYPTO_MD5
  11. select CRYPTO_SHA1
  12. select CRYPTO_HASH_INFO
  13. select TCG_TPM if HAS_IOMEM && !UML
  14. select TCG_TIS if TCG_TPM && X86
  15. select TCG_IBMVTPM if TCG_TPM && PPC64
  16. help
  17. The Trusted Computing Group(TCG) runtime Integrity
  18. Measurement Architecture(IMA) maintains a list of hash
  19. values of executables and other sensitive system files,
  20. as they are read or executed. If an attacker manages
  21. to change the contents of an important system file
  22. being measured, we can tell.
  23. If your system has a TPM chip, then IMA also maintains
  24. an aggregate integrity value over this list inside the
  25. TPM hardware, so that the TPM can prove to a third party
  26. whether or not critical system files have been modified.
  27. Read <http://www.usenix.org/events/sec04/tech/sailer.html>
  28. to learn more about IMA.
  29. If unsure, say N.
  30. config IMA_MEASURE_PCR_IDX
  31. int
  32. depends on IMA
  33. range 8 14
  34. default 10
  35. help
  36. IMA_MEASURE_PCR_IDX determines the TPM PCR register index
  37. that IMA uses to maintain the integrity aggregate of the
  38. measurement list. If unsure, use the default 10.
  39. config IMA_LSM_RULES
  40. bool
  41. depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK)
  42. default y
  43. help
  44. Disabling this option will disregard LSM based policy rules.
  45. choice
  46. prompt "Default template"
  47. default IMA_NG_TEMPLATE
  48. depends on IMA
  49. help
  50. Select the default IMA measurement template.
  51. The original 'ima' measurement list template contains a
  52. hash, defined as 20 bytes, and a null terminated pathname,
  53. limited to 255 characters. The 'ima-ng' measurement list
  54. template permits both larger hash digests and longer
  55. pathnames.
  56. config IMA_TEMPLATE
  57. bool "ima"
  58. config IMA_NG_TEMPLATE
  59. bool "ima-ng (default)"
  60. endchoice
  61. config IMA_DEFAULT_TEMPLATE
  62. string
  63. depends on IMA
  64. default "ima" if IMA_TEMPLATE
  65. default "ima-ng" if IMA_NG_TEMPLATE
  66. choice
  67. prompt "Default integrity hash algorithm"
  68. default IMA_DEFAULT_HASH_SHA1
  69. depends on IMA
  70. help
  71. Select the default hash algorithm used for the measurement
  72. list, integrity appraisal and audit log. The compiled default
  73. hash algorithm can be overwritten using the kernel command
  74. line 'ima_hash=' option.
  75. config IMA_DEFAULT_HASH_SHA1
  76. bool "SHA1 (default)"
  77. depends on CRYPTO_SHA1
  78. config IMA_DEFAULT_HASH_SHA256
  79. bool "SHA256"
  80. depends on CRYPTO_SHA256 && !IMA_TEMPLATE
  81. config IMA_DEFAULT_HASH_SHA512
  82. bool "SHA512"
  83. depends on CRYPTO_SHA512 && !IMA_TEMPLATE
  84. config IMA_DEFAULT_HASH_WP512
  85. bool "WP512"
  86. depends on CRYPTO_WP512 && !IMA_TEMPLATE
  87. endchoice
  88. config IMA_DEFAULT_HASH
  89. string
  90. depends on IMA
  91. default "sha1" if IMA_DEFAULT_HASH_SHA1
  92. default "sha256" if IMA_DEFAULT_HASH_SHA256
  93. default "sha512" if IMA_DEFAULT_HASH_SHA512
  94. default "wp512" if IMA_DEFAULT_HASH_WP512
  95. config IMA_APPRAISE
  96. bool "Appraise integrity measurements"
  97. depends on IMA
  98. default n
  99. help
  100. This option enables local measurement integrity appraisal.
  101. It requires the system to be labeled with a security extended
  102. attribute containing the file hash measurement. To protect
  103. the security extended attributes from offline attack, enable
  104. and configure EVM.
  105. For more information on integrity appraisal refer to:
  106. <http://linux-ima.sourceforge.net>
  107. If unsure, say N.