Kconfig 2.2 KB

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