Kconfig 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. #
  2. # Security configuration
  3. #
  4. menu "Security options"
  5. config KEYS
  6. bool "Enable access key retention support"
  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 TRUSTED_KEYS
  19. tristate "TRUSTED KEYS"
  20. depends on KEYS && TCG_TPM
  21. select CRYPTO
  22. select CRYPTO_HMAC
  23. select CRYPTO_SHA1
  24. help
  25. This option provides support for creating, sealing, and unsealing
  26. keys in the kernel. Trusted keys are random number symmetric keys,
  27. generated and RSA-sealed by the TPM. The TPM only unseals the keys,
  28. if the boot PCRs and other criteria match. Userspace will only ever
  29. see encrypted blobs.
  30. If you are unsure as to whether this is required, answer N.
  31. config ENCRYPTED_KEYS
  32. tristate "ENCRYPTED KEYS"
  33. depends on KEYS
  34. select CRYPTO
  35. select CRYPTO_HMAC
  36. select CRYPTO_AES
  37. select CRYPTO_CBC
  38. select CRYPTO_SHA256
  39. select CRYPTO_RNG
  40. help
  41. This option provides support for create/encrypting/decrypting keys
  42. in the kernel. Encrypted keys are kernel generated random numbers,
  43. which are encrypted/decrypted with a 'master' symmetric key. The
  44. 'master' key can be either a trusted-key or user-key type.
  45. Userspace only ever sees/stores encrypted blobs.
  46. If you are unsure as to whether this is required, answer N.
  47. config KEYS_DEBUG_PROC_KEYS
  48. bool "Enable the /proc/keys file by which keys may be viewed"
  49. depends on KEYS
  50. help
  51. This option turns on support for the /proc/keys file - through which
  52. can be listed all the keys on the system that are viewable by the
  53. reading process.
  54. The only keys included in the list are those that grant View
  55. permission to the reading process whether or not it possesses them.
  56. Note that LSM security checks are still performed, and may further
  57. filter out keys that the current process is not authorised to view.
  58. Only key attributes are listed here; key payloads are not included in
  59. the resulting table.
  60. If you are unsure as to whether this is required, answer N.
  61. config SECURITY_DMESG_RESTRICT
  62. bool "Restrict unprivileged access to the kernel syslog"
  63. default n
  64. help
  65. This enforces restrictions on unprivileged users reading the kernel
  66. syslog via dmesg(8).
  67. If this option is not selected, no restrictions will be enforced
  68. unless the dmesg_restrict sysctl is explicitly set to (1).
  69. If you are unsure how to answer this question, answer N.
  70. config SECURITY
  71. bool "Enable different security models"
  72. depends on SYSFS
  73. help
  74. This allows you to choose different security modules to be
  75. configured into your kernel.
  76. If this option is not selected, the default Linux security
  77. model will be used.
  78. If you are unsure how to answer this question, answer N.
  79. config SECURITYFS
  80. bool "Enable the securityfs filesystem"
  81. help
  82. This will build the securityfs filesystem. It is currently used by
  83. the TPM bios character driver and IMA, an integrity provider. It is
  84. not used by SELinux or SMACK.
  85. If you are unsure how to answer this question, answer N.
  86. config SECURITY_NETWORK
  87. bool "Socket and Networking Security Hooks"
  88. depends on SECURITY
  89. help
  90. This enables the socket and networking security hooks.
  91. If enabled, a security module can use these hooks to
  92. implement socket and networking access controls.
  93. If you are unsure how to answer this question, answer N.
  94. config SECURITY_NETWORK_XFRM
  95. bool "XFRM (IPSec) Networking Security Hooks"
  96. depends on XFRM && SECURITY_NETWORK
  97. help
  98. This enables the XFRM (IPSec) networking security hooks.
  99. If enabled, a security module can use these hooks to
  100. implement per-packet access controls based on labels
  101. derived from IPSec policy. Non-IPSec communications are
  102. designated as unlabelled, and only sockets authorized
  103. to communicate unlabelled data can send without using
  104. IPSec.
  105. If you are unsure how to answer this question, answer N.
  106. config SECURITY_PATH
  107. bool "Security hooks for pathname based access control"
  108. depends on SECURITY
  109. help
  110. This enables the security hooks for pathname based access control.
  111. If enabled, a security module can use these hooks to
  112. implement pathname based access controls.
  113. If you are unsure how to answer this question, answer N.
  114. config INTEL_TXT
  115. bool "Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)"
  116. depends on HAVE_INTEL_TXT
  117. help
  118. This option enables support for booting the kernel with the
  119. Trusted Boot (tboot) module. This will utilize
  120. Intel(R) Trusted Execution Technology to perform a measured launch
  121. of the kernel. If the system does not support Intel(R) TXT, this
  122. will have no effect.
  123. Intel TXT will provide higher assurance of system configuration and
  124. initial state as well as data reset protection. This is used to
  125. create a robust initial kernel measurement and verification, which
  126. helps to ensure that kernel security mechanisms are functioning
  127. correctly. This level of protection requires a root of trust outside
  128. of the kernel itself.
  129. Intel TXT also helps solve real end user concerns about having
  130. confidence that their hardware is running the VMM or kernel that
  131. it was configured with, especially since they may be responsible for
  132. providing such assurances to VMs and services running on it.
  133. See <http://www.intel.com/technology/security/> for more information
  134. about Intel(R) TXT.
  135. See <http://tboot.sourceforge.net> for more information about tboot.
  136. See Documentation/intel_txt.txt for a description of how to enable
  137. Intel TXT support in a kernel boot.
  138. If you are unsure as to whether this is required, answer N.
  139. config LSM_MMAP_MIN_ADDR
  140. int "Low address space for LSM to protect from user allocation"
  141. depends on SECURITY && SECURITY_SELINUX
  142. default 32768 if ARM
  143. default 65536
  144. help
  145. This is the portion of low virtual memory which should be protected
  146. from userspace allocation. Keeping a user from writing to low pages
  147. can help reduce the impact of kernel NULL pointer bugs.
  148. For most ia64, ppc64 and x86 users with lots of address space
  149. a value of 65536 is reasonable and should cause no problems.
  150. On arm and other archs it should not be higher than 32768.
  151. Programs which use vm86 functionality or have some need to map
  152. this low address space will need the permission specific to the
  153. systems running LSM.
  154. source security/selinux/Kconfig
  155. source security/smack/Kconfig
  156. source security/tomoyo/Kconfig
  157. source security/apparmor/Kconfig
  158. source security/yama/Kconfig
  159. source security/integrity/Kconfig
  160. choice
  161. prompt "Default security module"
  162. default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX
  163. default DEFAULT_SECURITY_SMACK if SECURITY_SMACK
  164. default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO
  165. default DEFAULT_SECURITY_APPARMOR if SECURITY_APPARMOR
  166. default DEFAULT_SECURITY_YAMA if SECURITY_YAMA
  167. default DEFAULT_SECURITY_DAC
  168. help
  169. Select the security module that will be used by default if the
  170. kernel parameter security= is not specified.
  171. config DEFAULT_SECURITY_SELINUX
  172. bool "SELinux" if SECURITY_SELINUX=y
  173. config DEFAULT_SECURITY_SMACK
  174. bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y
  175. config DEFAULT_SECURITY_TOMOYO
  176. bool "TOMOYO" if SECURITY_TOMOYO=y
  177. config DEFAULT_SECURITY_APPARMOR
  178. bool "AppArmor" if SECURITY_APPARMOR=y
  179. config DEFAULT_SECURITY_YAMA
  180. bool "Yama" if SECURITY_YAMA=y
  181. config DEFAULT_SECURITY_DAC
  182. bool "Unix Discretionary Access Controls"
  183. endchoice
  184. config DEFAULT_SECURITY
  185. string
  186. default "selinux" if DEFAULT_SECURITY_SELINUX
  187. default "smack" if DEFAULT_SECURITY_SMACK
  188. default "tomoyo" if DEFAULT_SECURITY_TOMOYO
  189. default "apparmor" if DEFAULT_SECURITY_APPARMOR
  190. default "yama" if DEFAULT_SECURITY_YAMA
  191. default "" if DEFAULT_SECURITY_DAC
  192. endmenu