mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
The help text was wrong, as it didn't match the actual default values
we were specifying. Indeed, when we specify:
default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
default 30 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
It means that the policy version 30 is supported starting from Linux
4.3 included, and that 31 is supported from Linux 4.13 included.
So we shouldn't have:
> 4.3 <= 4.13 30
> 4.13 31
but:
>= 4.3 < 4.13 30
>= 4.13 31
This patch fixes that for all versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 67d7705a9a)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
config BR2_PACKAGE_LIBSEPOL
|
|
bool "libsepol"
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
|
|
help
|
|
Libsepol is the binary policy manipulation library. It doesn't
|
|
depend upon or use any of the other SELinux components.
|
|
|
|
http://selinuxproject.org/page/Main_Page
|
|
|
|
if BR2_PACKAGE_LIBSEPOL
|
|
|
|
config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION
|
|
int "Policy version"
|
|
default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
|
|
default 30 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
|
|
default 29 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
|
|
default 28 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
|
|
default 26 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_2_6
|
|
default 25
|
|
help
|
|
The maximum SELinux policy version your kernel supports.
|
|
|
|
Here's a handy table to help you choose:
|
|
kernel version SElinux policy max version
|
|
< 2.6.x 25
|
|
>= 2.6 < 3.5 26
|
|
>= 3.5 < 3.14 28 (27 and 28 were added at the same time)
|
|
>= 3.14 < 4.3 29
|
|
>= 4.3 < 4.13 30
|
|
>= 4.13 31
|
|
|
|
endif
|
|
|
|
comment "libsepol needs a toolchain w/ threads"
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS
|