Kconfig 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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_PERF_EVENTS_RESTRICT
  71. bool "Restrict unprivileged use of performance events"
  72. depends on PERF_EVENTS
  73. help
  74. If you say Y here, the kernel.perf_event_paranoid sysctl
  75. will be set to 3 by default, and no unprivileged use of the
  76. perf_event_open syscall will be permitted unless it is
  77. changed.
  78. config SECURITY
  79. bool "Enable different security models"
  80. depends on SYSFS
  81. help
  82. This allows you to choose different security modules to be
  83. configured into your kernel.
  84. If this option is not selected, the default Linux security
  85. model will be used.
  86. If you are unsure how to answer this question, answer N.
  87. config SECURITYFS
  88. bool "Enable the securityfs filesystem"
  89. help
  90. This will build the securityfs filesystem. It is currently used by
  91. the TPM bios character driver and IMA, an integrity provider. It is
  92. not used by SELinux or SMACK.
  93. If you are unsure how to answer this question, answer N.
  94. config SECURITY_NETWORK
  95. bool "Socket and Networking Security Hooks"
  96. depends on SECURITY
  97. help
  98. This enables the socket and networking security hooks.
  99. If enabled, a security module can use these hooks to
  100. implement socket and networking access controls.
  101. If you are unsure how to answer this question, answer N.
  102. config SECURITY_NETWORK_XFRM
  103. bool "XFRM (IPSec) Networking Security Hooks"
  104. depends on XFRM && SECURITY_NETWORK
  105. help
  106. This enables the XFRM (IPSec) networking security hooks.
  107. If enabled, a security module can use these hooks to
  108. implement per-packet access controls based on labels
  109. derived from IPSec policy. Non-IPSec communications are
  110. designated as unlabelled, and only sockets authorized
  111. to communicate unlabelled data can send without using
  112. IPSec.
  113. If you are unsure how to answer this question, answer N.
  114. config SECURITY_PATH
  115. bool "Security hooks for pathname based access control"
  116. depends on SECURITY
  117. help
  118. This enables the security hooks for pathname based access control.
  119. If enabled, a security module can use these hooks to
  120. implement pathname based access controls.
  121. If you are unsure how to answer this question, answer N.
  122. config INTEL_TXT
  123. bool "Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)"
  124. depends on HAVE_INTEL_TXT
  125. help
  126. This option enables support for booting the kernel with the
  127. Trusted Boot (tboot) module. This will utilize
  128. Intel(R) Trusted Execution Technology to perform a measured launch
  129. of the kernel. If the system does not support Intel(R) TXT, this
  130. will have no effect.
  131. Intel TXT will provide higher assurance of system configuration and
  132. initial state as well as data reset protection. This is used to
  133. create a robust initial kernel measurement and verification, which
  134. helps to ensure that kernel security mechanisms are functioning
  135. correctly. This level of protection requires a root of trust outside
  136. of the kernel itself.
  137. Intel TXT also helps solve real end user concerns about having
  138. confidence that their hardware is running the VMM or kernel that
  139. it was configured with, especially since they may be responsible for
  140. providing such assurances to VMs and services running on it.
  141. See <http://www.intel.com/technology/security/> for more information
  142. about Intel(R) TXT.
  143. See <http://tboot.sourceforge.net> for more information about tboot.
  144. See Documentation/intel_txt.txt for a description of how to enable
  145. Intel TXT support in a kernel boot.
  146. If you are unsure as to whether this is required, answer N.
  147. config LSM_MMAP_MIN_ADDR
  148. int "Low address space for LSM to protect from user allocation"
  149. depends on SECURITY && SECURITY_SELINUX
  150. default 32768 if ARM
  151. default 65536
  152. help
  153. This is the portion of low virtual memory which should be protected
  154. from userspace allocation. Keeping a user from writing to low pages
  155. can help reduce the impact of kernel NULL pointer bugs.
  156. For most ia64, ppc64 and x86 users with lots of address space
  157. a value of 65536 is reasonable and should cause no problems.
  158. On arm and other archs it should not be higher than 32768.
  159. Programs which use vm86 functionality or have some need to map
  160. this low address space will need the permission specific to the
  161. systems running LSM.
  162. source security/selinux/Kconfig
  163. source security/smack/Kconfig
  164. source security/tomoyo/Kconfig
  165. source security/apparmor/Kconfig
  166. source security/yama/Kconfig
  167. source security/integrity/Kconfig
  168. source security/tz_iccc/Kconfig
  169. choice
  170. prompt "Default security module"
  171. default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX
  172. default DEFAULT_SECURITY_SMACK if SECURITY_SMACK
  173. default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO
  174. default DEFAULT_SECURITY_APPARMOR if SECURITY_APPARMOR
  175. default DEFAULT_SECURITY_YAMA if SECURITY_YAMA
  176. default DEFAULT_SECURITY_DAC
  177. help
  178. Select the security module that will be used by default if the
  179. kernel parameter security= is not specified.
  180. config DEFAULT_SECURITY_SELINUX
  181. bool "SELinux" if SECURITY_SELINUX=y
  182. config DEFAULT_SECURITY_SMACK
  183. bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y
  184. config DEFAULT_SECURITY_TOMOYO
  185. bool "TOMOYO" if SECURITY_TOMOYO=y
  186. config DEFAULT_SECURITY_APPARMOR
  187. bool "AppArmor" if SECURITY_APPARMOR=y
  188. config DEFAULT_SECURITY_YAMA
  189. bool "Yama" if SECURITY_YAMA=y
  190. config DEFAULT_SECURITY_DAC
  191. bool "Unix Discretionary Access Controls"
  192. endchoice
  193. config DEFAULT_SECURITY
  194. string
  195. default "selinux" if DEFAULT_SECURITY_SELINUX
  196. default "smack" if DEFAULT_SECURITY_SMACK
  197. default "tomoyo" if DEFAULT_SECURITY_TOMOYO
  198. default "apparmor" if DEFAULT_SECURITY_APPARMOR
  199. default "yama" if DEFAULT_SECURITY_YAMA
  200. default "" if DEFAULT_SECURITY_DAC
  201. endmenu