[Buildroot] [git commit] package/coreutils: enable selinux support
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Dec 27 20:20:34 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=c09d759a6497f3c979d1dba3df531833e25e4c47
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Enable SELinux support if libselinux is selected. This allows utilities such as
ls to read and display extended attributes with ls -lZ
Signed-off-by: Adam Duskett <aduskett at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/coreutils/coreutils.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index a31354ac5a..438b7910eb 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -93,6 +93,13 @@ else
COREUTILS_CONF_OPTS += --disable-libcap
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+COREUTILS_DEPENDENCIES += libselinux
+COREUTILS_CONF_OPTS += --with-selinux
+else
+COREUTILS_CONF_OPTS += --without-selinux
+endif
+
ifeq ($(BR2_PACKAGE_OPENSSL),y)
COREUTILS_CONF_OPTS += --with-openssl=yes
COREUTILS_DEPENDENCIES += openssl
More information about the buildroot
mailing list