1config 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 9 http://selinuxproject.org/page/Main_Page 10 11if BR2_PACKAGE_LIBSEPOL 12 13config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION 14 int "Policy version" 15 default 33 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8 16 default 32 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 17 default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 18 default 30 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 19 default 29 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 20 default 28 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5 21 default 25 22 help 23 The maximum SELinux policy version your kernel supports. 24 25 Here's a handy table to help you choose: 26 kernel version SElinux policy max version 27 < 2.6.x 25 28 >= 2.6 < 3.5 26 29 >= 3.5 < 3.14 28 (27 and 28 were added at the same time) 30 >= 3.14 < 4.3 29 31 >= 4.3 < 4.13 30 32 >= 4.13 < 5.5 31 33 >= 5.5 < 5.8 32 34 >= 5.8 33 35 36endif 37 38comment "libsepol needs a toolchain w/ threads, gcc >= 5" 39 depends on !BR2_TOOLCHAIN_HAS_THREADS || \ 40 !BR2_TOOLCHAIN_GCC_AT_LEAST_5 41