Kconfig 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. config EVM
  2. bool "EVM support"
  3. select KEYS
  4. select ENCRYPTED_KEYS
  5. select CRYPTO_HMAC
  6. select CRYPTO_SHA1
  7. select CRYPTO_HASH_INFO
  8. default n
  9. help
  10. EVM protects a file's security extended attributes against
  11. integrity attacks.
  12. If you are unsure how to answer this question, answer N.
  13. config EVM_ATTR_FSUUID
  14. bool "FSUUID (version 2)"
  15. default y
  16. depends on EVM
  17. help
  18. Include filesystem UUID for HMAC calculation.
  19. Default value is 'selected', which is former version 2.
  20. if 'not selected', it is former version 1
  21. WARNING: changing the HMAC calculation method or adding
  22. additional info to the calculation, requires existing EVM
  23. labeled file systems to be relabeled.
  24. config EVM_EXTRA_SMACK_XATTRS
  25. bool "Additional SMACK xattrs"
  26. depends on EVM && SECURITY_SMACK
  27. default n
  28. help
  29. Include additional SMACK xattrs for HMAC calculation.
  30. In addition to the original security xattrs (eg. security.selinux,
  31. security.SMACK64, security.capability, and security.ima) included
  32. in the HMAC calculation, enabling this option includes newly defined
  33. Smack xattrs: security.SMACK64EXEC, security.SMACK64TRANSMUTE and
  34. security.SMACK64MMAP.
  35. WARNING: changing the HMAC calculation method or adding
  36. additional info to the calculation, requires existing EVM
  37. labeled file systems to be relabeled.
  38. config EVM_ADD_XATTRS
  39. bool "Add additional EVM extended attributes at runtime"
  40. depends on EVM
  41. default n
  42. help
  43. Allow userland to provide additional xattrs for HMAC calculation.
  44. When this option is enabled, root can add additional xattrs to the
  45. list used by EVM by writing them into
  46. /sys/kernel/security/integrity/evm/evm_xattrs.
  47. config EVM_LOAD_X509
  48. bool "Load an X509 certificate onto the '.evm' trusted keyring"
  49. depends on EVM && INTEGRITY_TRUSTED_KEYRING
  50. default n
  51. help
  52. Load an X509 certificate onto the '.evm' trusted keyring.
  53. This option enables X509 certificate loading from the kernel
  54. onto the '.evm' trusted keyring. A public key can be used to
  55. verify EVM integrity starting from the 'init' process.
  56. config EVM_X509_PATH
  57. string "EVM X509 certificate path"
  58. depends on EVM_LOAD_X509
  59. default "/etc/keys/x509_evm.der"
  60. help
  61. This option defines X509 certificate path.