8de4aadda7
Changes: https://github.com/SELinuxProject/selinux/releases/download/3.9/RELEASE-3.9.txt Notable changes related to policycoreutils: none. However, in terms of packaging, there's a change: the top-level Makefile of policycoreutils now uses pkg-config to find libselinux and libsemanage. So building directly the subdirs no longer works because the variables defined by the top-level Makefile are no longer set. So we simplify the whole packaging by building from the top-level Makefile. In order for this pkg-config to work for the host variant, we need to pass $(HOST_MAKE_ENV) in the environment of make, so we also did the same for consistency with $(TARGET_MAKE_ENV). In terms of dependencies: policycoreutils directly links with libselinux, libsemanage and libsepol, so all three are needed for both the target and host variants. And host-pkgconf is now needed for the host variant, as it's used to detect the dependent libraries. The patches also need to be refreshed, except 0003 that is dropped since it was a backport from upstream. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> merge policycoreutils Signed-off-by: Julien Olivain <ju.o@free.fr>
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
comment "policycoreutils needs a toolchain w/ threads, dynamic library, gcc >= 5"
|
|
depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
|
|
|
config BR2_PACKAGE_POLICYCOREUTILS
|
|
bool "policycoreutils"
|
|
depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS # libsemanage
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libselinux, libsemanage, libsepol
|
|
depends on !BR2_STATIC_LIBS # libselinux, libsemanage, libsepol
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsemanage -> libselinux -> libsepol
|
|
select BR2_PACKAGE_LIBSELINUX
|
|
select BR2_PACKAGE_LIBSEMANAGE
|
|
select BR2_PACKAGE_LIBSEPOL
|
|
select BR2_PACKAGE_LIBCAP_NG
|
|
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
|
|
help
|
|
Policycoreutils is a collection of policy utilities
|
|
(originally the "core" set of utilities needed to use
|
|
SELinux, although it has grown a bit over time), which have
|
|
different dependencies. sestatus, secon, run_init, and
|
|
newrole only use libselinux. load_policy and setfiles only
|
|
use libselinux and libsepol. semodule and semanage use
|
|
libsemanage (and thus bring in dependencies on libsepol and
|
|
libselinux as well). setsebool uses libselinux to make
|
|
non-persistent boolean changes (via the kernel interface)
|
|
and uses libsemanage to make persistent boolean changes.
|
|
|
|
The base package will install the following utilities:
|
|
load_policy
|
|
newrole
|
|
run_init
|
|
secon
|
|
semodule
|
|
sestatus
|
|
setfiles
|
|
setsebool
|
|
|
|
http://selinuxproject.org/page/Main_Page
|