Config.in 1.2 KB

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