Kconfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. config IMA_APPRAISE
  67. bool "Appraise integrity measurements"
  68. depends on IMA
  69. default n
  70. help
  71. This option enables local measurement integrity appraisal.
  72. It requires the system to be labeled with a security extended
  73. attribute containing the file hash measurement. To protect
  74. the security extended attributes from offline attack, enable
  75. and configure EVM.
  76. For more information on integrity appraisal refer to:
  77. <http://linux-ima.sourceforge.net>
  78. If unsure, say N.