Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. #
  2. # Security configuration
  3. #
  4. menu "Security options"
  5. source security/keys/Kconfig
  6. config SECURITY_DMESG_RESTRICT
  7. bool "Restrict unprivileged access to the kernel syslog"
  8. default n
  9. help
  10. This enforces restrictions on unprivileged users reading the kernel
  11. syslog via dmesg(8).
  12. If this option is not selected, no restrictions will be enforced
  13. unless the dmesg_restrict sysctl is explicitly set to (1).
  14. If you are unsure how to answer this question, answer N.
  15. config SECURITY
  16. bool "Enable different security models"
  17. depends on SYSFS
  18. help
  19. This allows you to choose different security modules to be
  20. configured into your kernel.
  21. If this option is not selected, the default Linux security
  22. model will be used.
  23. If you are unsure how to answer this question, answer N.
  24. config SECURITYFS
  25. bool "Enable the securityfs filesystem"
  26. help
  27. This will build the securityfs filesystem. It is currently used by
  28. the TPM bios character driver and IMA, an integrity provider. It is
  29. not used by SELinux or SMACK.
  30. If you are unsure how to answer this question, answer N.
  31. config SECURITY_NETWORK
  32. bool "Socket and Networking Security Hooks"
  33. depends on SECURITY
  34. help
  35. This enables the socket and networking security hooks.
  36. If enabled, a security module can use these hooks to
  37. implement socket and networking access controls.
  38. If you are unsure how to answer this question, answer N.
  39. config SECURITY_NETWORK_XFRM
  40. bool "XFRM (IPSec) Networking Security Hooks"
  41. depends on XFRM && SECURITY_NETWORK
  42. help
  43. This enables the XFRM (IPSec) networking security hooks.
  44. If enabled, a security module can use these hooks to
  45. implement per-packet access controls based on labels
  46. derived from IPSec policy. Non-IPSec communications are
  47. designated as unlabelled, and only sockets authorized
  48. to communicate unlabelled data can send without using
  49. IPSec.
  50. If you are unsure how to answer this question, answer N.
  51. config SECURITY_PATH
  52. bool "Security hooks for pathname based access control"
  53. depends on SECURITY
  54. help
  55. This enables the security hooks for pathname based access control.
  56. If enabled, a security module can use these hooks to
  57. implement pathname based access controls.
  58. If you are unsure how to answer this question, answer N.
  59. config INTEL_TXT
  60. bool "Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)"
  61. depends on HAVE_INTEL_TXT
  62. help
  63. This option enables support for booting the kernel with the
  64. Trusted Boot (tboot) module. This will utilize
  65. Intel(R) Trusted Execution Technology to perform a measured launch
  66. of the kernel. If the system does not support Intel(R) TXT, this
  67. will have no effect.
  68. Intel TXT will provide higher assurance of system configuration and
  69. initial state as well as data reset protection. This is used to
  70. create a robust initial kernel measurement and verification, which
  71. helps to ensure that kernel security mechanisms are functioning
  72. correctly. This level of protection requires a root of trust outside
  73. of the kernel itself.
  74. Intel TXT also helps solve real end user concerns about having
  75. confidence that their hardware is running the VMM or kernel that
  76. it was configured with, especially since they may be responsible for
  77. providing such assurances to VMs and services running on it.
  78. See <http://www.intel.com/technology/security/> for more information
  79. about Intel(R) TXT.
  80. See <http://tboot.sourceforge.net> for more information about tboot.
  81. See Documentation/intel_txt.txt for a description of how to enable
  82. Intel TXT support in a kernel boot.
  83. If you are unsure as to whether this is required, answer N.
  84. config LSM_MMAP_MIN_ADDR
  85. int "Low address space for LSM to protect from user allocation"
  86. depends on SECURITY && SECURITY_SELINUX
  87. default 32768 if ARM
  88. default 65536
  89. help
  90. This is the portion of low virtual memory which should be protected
  91. from userspace allocation. Keeping a user from writing to low pages
  92. can help reduce the impact of kernel NULL pointer bugs.
  93. For most ia64, ppc64 and x86 users with lots of address space
  94. a value of 65536 is reasonable and should cause no problems.
  95. On arm and other archs it should not be higher than 32768.
  96. Programs which use vm86 functionality or have some need to map
  97. this low address space will need the permission specific to the
  98. systems running LSM.
  99. source security/selinux/Kconfig
  100. source security/smack/Kconfig
  101. source security/tomoyo/Kconfig
  102. source security/apparmor/Kconfig
  103. source security/yama/Kconfig
  104. source security/integrity/Kconfig
  105. choice
  106. prompt "Default security module"
  107. default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX
  108. default DEFAULT_SECURITY_SMACK if SECURITY_SMACK
  109. default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO
  110. default DEFAULT_SECURITY_APPARMOR if SECURITY_APPARMOR
  111. default DEFAULT_SECURITY_YAMA if SECURITY_YAMA
  112. default DEFAULT_SECURITY_DAC
  113. help
  114. Select the security module that will be used by default if the
  115. kernel parameter security= is not specified.
  116. config DEFAULT_SECURITY_SELINUX
  117. bool "SELinux" if SECURITY_SELINUX=y
  118. config DEFAULT_SECURITY_SMACK
  119. bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y
  120. config DEFAULT_SECURITY_TOMOYO
  121. bool "TOMOYO" if SECURITY_TOMOYO=y
  122. config DEFAULT_SECURITY_APPARMOR
  123. bool "AppArmor" if SECURITY_APPARMOR=y
  124. config DEFAULT_SECURITY_YAMA
  125. bool "Yama" if SECURITY_YAMA=y
  126. config DEFAULT_SECURITY_DAC
  127. bool "Unix Discretionary Access Controls"
  128. endchoice
  129. config DEFAULT_SECURITY
  130. string
  131. default "selinux" if DEFAULT_SECURITY_SELINUX
  132. default "smack" if DEFAULT_SECURITY_SMACK
  133. default "tomoyo" if DEFAULT_SECURITY_TOMOYO
  134. default "apparmor" if DEFAULT_SECURITY_APPARMOR
  135. default "yama" if DEFAULT_SECURITY_YAMA
  136. default "" if DEFAULT_SECURITY_DAC
  137. endmenu