Kconfig 7.8 KB

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