Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #
  2. # Key management configuration
  3. #
  4. config KEYS
  5. bool "Enable access key retention support"
  6. select ASSOCIATIVE_ARRAY
  7. help
  8. This option provides support for retaining authentication tokens and
  9. access keys in the kernel.
  10. It also includes provision of methods by which such keys might be
  11. associated with a process so that network filesystems, encryption
  12. support and the like can find them.
  13. Furthermore, a special type of key is available that acts as keyring:
  14. a searchable sequence of keys. Each process is equipped with access
  15. to five standard keyrings: UID-specific, GID-specific, session,
  16. process and thread.
  17. If you are unsure as to whether this is required, answer N.
  18. config KEYS_COMPAT
  19. def_bool y
  20. depends on COMPAT && KEYS
  21. config PERSISTENT_KEYRINGS
  22. bool "Enable register of persistent per-UID keyrings"
  23. depends on KEYS
  24. help
  25. This option provides a register of persistent per-UID keyrings,
  26. primarily aimed at Kerberos key storage. The keyrings are persistent
  27. in the sense that they stay around after all processes of that UID
  28. have exited, not that they survive the machine being rebooted.
  29. A particular keyring may be accessed by either the user whose keyring
  30. it is or by a process with administrative privileges. The active
  31. LSMs gets to rule on which admin-level processes get to access the
  32. cache.
  33. Keyrings are created and added into the register upon demand and get
  34. removed if they expire (a default timeout is set upon creation).
  35. config BIG_KEYS
  36. bool "Large payload keys"
  37. depends on KEYS
  38. depends on TMPFS
  39. select CRYPTO
  40. select CRYPTO_AES
  41. select CRYPTO_GCM
  42. help
  43. This option provides support for holding large keys within the kernel
  44. (for example Kerberos ticket caches). The data may be stored out to
  45. swapspace by tmpfs.
  46. If you are unsure as to whether this is required, answer N.
  47. config TRUSTED_KEYS
  48. tristate "TRUSTED KEYS"
  49. depends on KEYS && TCG_TPM
  50. select CRYPTO
  51. select CRYPTO_HMAC
  52. select CRYPTO_SHA1
  53. select CRYPTO_HASH_INFO
  54. help
  55. This option provides support for creating, sealing, and unsealing
  56. keys in the kernel. Trusted keys are random number symmetric keys,
  57. generated and RSA-sealed by the TPM. The TPM only unseals the keys,
  58. if the boot PCRs and other criteria match. Userspace will only ever
  59. see encrypted blobs.
  60. If you are unsure as to whether this is required, answer N.
  61. config ENCRYPTED_KEYS
  62. tristate "ENCRYPTED KEYS"
  63. depends on KEYS
  64. select CRYPTO
  65. select CRYPTO_HMAC
  66. select CRYPTO_AES
  67. select CRYPTO_CBC
  68. select CRYPTO_SHA256
  69. select CRYPTO_RNG
  70. help
  71. This option provides support for create/encrypting/decrypting keys
  72. in the kernel. Encrypted keys are kernel generated random numbers,
  73. which are encrypted/decrypted with a 'master' symmetric key. The
  74. 'master' key can be either a trusted-key or user-key type.
  75. Userspace only ever sees/stores encrypted blobs.
  76. If you are unsure as to whether this is required, answer N.
  77. config KEY_DH_OPERATIONS
  78. bool "Diffie-Hellman operations on retained keys"
  79. depends on KEYS
  80. select CRYPTO
  81. select CRYPTO_HASH
  82. select CRYPTO_DH
  83. help
  84. This option provides support for calculating Diffie-Hellman
  85. public keys and shared secrets using values stored as keys
  86. in the kernel.
  87. If you are unsure as to whether this is required, answer N.