Kconfig 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config SECURITY_TOMOYO
  3. bool "TOMOYO Linux Support"
  4. depends on SECURITY
  5. depends on NET
  6. select SECURITYFS
  7. select SECURITY_PATH
  8. select SECURITY_NETWORK
  9. default n
  10. help
  11. This selects TOMOYO Linux, pathname-based access control.
  12. Required userspace tools and further information may be
  13. found at <https://tomoyo.sourceforge.net/>.
  14. If you are unsure how to answer this question, answer N.
  15. config SECURITY_TOMOYO_MAX_ACCEPT_ENTRY
  16. int "Default maximal count for learning mode"
  17. default 2048
  18. range 0 2147483647
  19. depends on SECURITY_TOMOYO
  20. help
  21. This is the default value for maximal ACL entries
  22. that are automatically appended into policy at "learning mode".
  23. Some programs access thousands of objects, so running
  24. such programs in "learning mode" dulls the system response
  25. and consumes much memory.
  26. This is the safeguard for such programs.
  27. config SECURITY_TOMOYO_MAX_AUDIT_LOG
  28. int "Default maximal count for audit log"
  29. default 1024
  30. range 0 2147483647
  31. depends on SECURITY_TOMOYO
  32. help
  33. This is the default value for maximal entries for
  34. audit logs that the kernel can hold on memory.
  35. You can read the log via /sys/kernel/security/tomoyo/audit.
  36. If you don't need audit logs, you may set this value to 0.
  37. config SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
  38. bool "Activate without calling userspace policy loader."
  39. default n
  40. depends on SECURITY_TOMOYO
  41. help
  42. Say Y here if you want to activate access control as soon as built-in
  43. policy was loaded. This option will be useful for systems where
  44. operations which can lead to the hijacking of the boot sequence are
  45. needed before loading the policy. For example, you can activate
  46. immediately after loading the fixed part of policy which will allow
  47. only operations needed for mounting a partition which contains the
  48. variant part of policy and verifying (e.g. running GPG check) and
  49. loading the variant part of policy. Since you can start using
  50. enforcing mode from the beginning, you can reduce the possibility of
  51. hijacking the boot sequence.
  52. config SECURITY_TOMOYO_POLICY_LOADER
  53. string "Location of userspace policy loader"
  54. default "/sbin/tomoyo-init"
  55. depends on SECURITY_TOMOYO
  56. depends on !SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
  57. help
  58. This is the default pathname of policy loader which is called before
  59. activation. You can override this setting via TOMOYO_loader= kernel
  60. command line option.
  61. config SECURITY_TOMOYO_ACTIVATION_TRIGGER
  62. string "Trigger for calling userspace policy loader"
  63. default "/sbin/init"
  64. depends on SECURITY_TOMOYO
  65. depends on !SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
  66. help
  67. This is the default pathname of activation trigger.
  68. You can override this setting via TOMOYO_trigger= kernel command line
  69. option. For example, if you pass init=/bin/systemd option, you may
  70. want to also pass TOMOYO_trigger=/bin/systemd option.
  71. config SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING
  72. bool "Use insecure built-in settings for fuzzing tests."
  73. default n
  74. depends on SECURITY_TOMOYO
  75. select SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
  76. help
  77. Enabling this option forces minimal built-in policy and disables
  78. domain/program checks for run-time policy modifications. Please enable
  79. this option only if this kernel is built for doing fuzzing tests.