Kconfig 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. config SECURITY_SELINUX
  2. bool "NSA SELinux Support"
  3. depends on SECURITY_NETWORK && AUDIT && NET && INET
  4. default n
  5. help
  6. This selects NSA Security-Enhanced Linux (SELinux).
  7. You will also need a policy configuration and a labeled filesystem.
  8. You can obtain the policy compiler (checkpolicy), the utility for
  9. labeling filesystems (setfiles), and an example policy configuration
  10. from <http://www.nsa.gov/selinux/>.
  11. If you are unsure how to answer this question, answer N.
  12. config SECURITY_SELINUX_BOOTPARAM
  13. bool "NSA SELinux boot parameter"
  14. depends on SECURITY_SELINUX
  15. default n
  16. help
  17. This option adds a kernel parameter 'selinux', which allows SELinux
  18. to be disabled at boot. If this option is selected, SELinux
  19. functionality can be disabled with selinux=0 on the kernel
  20. command line. The purpose of this option is to allow a single
  21. kernel image to be distributed with SELinux built in, but not
  22. necessarily enabled.
  23. If you are unsure how to answer this question, answer N.
  24. config SECURITY_SELINUX_BOOTPARAM_VALUE
  25. int "NSA SELinux boot parameter default value"
  26. depends on SECURITY_SELINUX_BOOTPARAM
  27. range 0 1
  28. default 1
  29. help
  30. This option sets the default value for the kernel parameter
  31. 'selinux', which allows SELinux to be disabled at boot. If this
  32. option is set to 0 (zero), the SELinux kernel parameter will
  33. default to 0, disabling SELinux at bootup. If this option is
  34. set to 1 (one), the SELinux kernel parameter will default to 1,
  35. enabling SELinux at bootup.
  36. If you are unsure how to answer this question, answer 1.
  37. config SECURITY_SELINUX_DISABLE
  38. bool "NSA SELinux runtime disable"
  39. depends on SECURITY_SELINUX
  40. default n
  41. help
  42. This option enables writing to a selinuxfs node 'disable', which
  43. allows SELinux to be disabled at runtime prior to the policy load.
  44. SELinux will then remain disabled until the next boot.
  45. This option is similar to the selinux=0 boot parameter, but is to
  46. support runtime disabling of SELinux, e.g. from /sbin/init, for
  47. portability across platforms where boot parameters are difficult
  48. to employ.
  49. If you are unsure how to answer this question, answer N.
  50. config SECURITY_SELINUX_DEVELOP
  51. bool "NSA SELinux Development Support"
  52. depends on SECURITY_SELINUX
  53. default y
  54. help
  55. This enables the development support option of NSA SELinux,
  56. which is useful for experimenting with SELinux and developing
  57. policies. If unsure, say Y. With this option enabled, the
  58. kernel will start in permissive mode (log everything, deny nothing)
  59. unless you specify enforcing=1 on the kernel command line. You
  60. can interactively toggle the kernel between enforcing mode and
  61. permissive mode (if permitted by the policy) via /selinux/enforce.
  62. config SECURITY_SELINUX_AVC_STATS
  63. bool "NSA SELinux AVC Statistics"
  64. depends on SECURITY_SELINUX
  65. default y
  66. help
  67. This option collects access vector cache statistics to
  68. /selinux/avc/cache_stats, which may be monitored via
  69. tools such as avcstat.
  70. config SECURITY_SELINUX_CHECKREQPROT_VALUE
  71. int "NSA SELinux checkreqprot default value"
  72. depends on SECURITY_SELINUX
  73. range 0 1
  74. default 1
  75. help
  76. This option sets the default value for the 'checkreqprot' flag
  77. that determines whether SELinux checks the protection requested
  78. by the application or the protection that will be applied by the
  79. kernel (including any implied execute for read-implies-exec) for
  80. mmap and mprotect calls. If this option is set to 0 (zero),
  81. SELinux will default to checking the protection that will be applied
  82. by the kernel. If this option is set to 1 (one), SELinux will
  83. default to checking the protection requested by the application.
  84. The checkreqprot flag may be changed from the default via the
  85. 'checkreqprot=' boot parameter. It may also be changed at runtime
  86. via /selinux/checkreqprot if authorized by policy.
  87. If you are unsure how to answer this question, answer 1.