Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 KEYS_DEBUG_PROC_KEYS
  19. bool "Enable the /proc/keys file by which keys may be viewed"
  20. depends on KEYS
  21. help
  22. This option turns on support for the /proc/keys file - through which
  23. can be listed all the keys on the system that are viewable by the
  24. reading process.
  25. The only keys included in the list are those that grant View
  26. permission to the reading process whether or not it possesses them.
  27. Note that LSM security checks are still performed, and may further
  28. filter out keys that the current process is not authorised to view.
  29. Only key attributes are listed here; key payloads are not included in
  30. the resulting table.
  31. If you are unsure as to whether this is required, answer N.
  32. config SECURITY
  33. bool "Enable different security models"
  34. depends on SYSFS
  35. help
  36. This allows you to choose different security modules to be
  37. configured into your kernel.
  38. If this option is not selected, the default Linux security
  39. model will be used.
  40. If you are unsure how to answer this question, answer N.
  41. config SECURITYFS
  42. bool "Enable the securityfs filesystem"
  43. help
  44. This will build the securityfs filesystem. It is currently used by
  45. the TPM bios character driver. It is not used by SELinux or SMACK.
  46. If you are unsure how to answer this question, answer N.
  47. config SECURITY_NETWORK
  48. bool "Socket and Networking Security Hooks"
  49. depends on SECURITY
  50. help
  51. This enables the socket and networking security hooks.
  52. If enabled, a security module can use these hooks to
  53. implement socket and networking access controls.
  54. If you are unsure how to answer this question, answer N.
  55. config SECURITY_NETWORK_XFRM
  56. bool "XFRM (IPSec) Networking Security Hooks"
  57. depends on XFRM && SECURITY_NETWORK
  58. help
  59. This enables the XFRM (IPSec) networking security hooks.
  60. If enabled, a security module can use these hooks to
  61. implement per-packet access controls based on labels
  62. derived from IPSec policy. Non-IPSec communications are
  63. designated as unlabelled, and only sockets authorized
  64. to communicate unlabelled data can send without using
  65. IPSec.
  66. If you are unsure how to answer this question, answer N.
  67. config SECURITY_FILE_CAPABILITIES
  68. bool "File POSIX Capabilities"
  69. default n
  70. help
  71. This enables filesystem capabilities, allowing you to give
  72. binaries a subset of root's powers without using setuid 0.
  73. If in doubt, answer N.
  74. config SECURITY_ROOTPLUG
  75. bool "Root Plug Support"
  76. depends on USB=y && SECURITY
  77. help
  78. This is a sample LSM module that should only be used as such.
  79. It prevents any programs running with egid == 0 if a specific
  80. USB device is not present in the system.
  81. See <http://www.linuxjournal.com/article.php?sid=6279> for
  82. more information about this module.
  83. If you are unsure how to answer this question, answer N.
  84. config SECURITY_DEFAULT_MMAP_MIN_ADDR
  85. int "Low address space to protect from user allocation"
  86. depends on SECURITY
  87. default 0
  88. help
  89. This is the portion of low virtual memory which should be protected
  90. from userspace allocation. Keeping a user from writing to low pages
  91. can help reduce the impact of kernel NULL pointer bugs.
  92. For most ia64, ppc64 and x86 users with lots of address space
  93. a value of 65536 is reasonable and should cause no problems.
  94. On arm and other archs it should not be higher than 32768.
  95. Programs which use vm86 functionality would either need additional
  96. permissions from either the LSM or the capabilities module or have
  97. this protection disabled.
  98. This value can be changed after boot using the
  99. /proc/sys/vm/mmap_min_addr tunable.
  100. source security/selinux/Kconfig
  101. source security/smack/Kconfig
  102. endmenu