Kconfig 2.9 KB

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