Config.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. config BR2_PACKAGE_LIBSEPOL
  2. bool "libsepol"
  3. depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
  4. help
  5. Libsepol is the binary policy manipulation library. It doesn't
  6. depend upon or use any of the other SELinux components.
  7. http://selinuxproject.org/page/Main_Page
  8. if BR2_PACKAGE_LIBSEPOL
  9. config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION
  10. int "Policy version"
  11. default 32 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  12. default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  13. default 30 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  14. default 29 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  15. default 28 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  16. default 26 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_2_6
  17. default 25
  18. help
  19. The maximum SELinux policy version your kernel supports.
  20. Here's a handy table to help you choose:
  21. kernel version SElinux policy max version
  22. < 2.6.x 25
  23. >= 2.6 < 3.5 26
  24. >= 3.5 < 3.14 28 (27 and 28 were added at the same time)
  25. >= 3.14 < 4.3 29
  26. >= 4.3 < 4.13 30
  27. >= 4.13 < 5.5 31
  28. >= 5.5 32
  29. endif
  30. comment "libsepol needs a toolchain w/ threads"
  31. depends on !BR2_TOOLCHAIN_HAS_THREADS