mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] util-linux: follow GLOBAL_SELINUX
@ 2026-11-21  9:12 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2026-11-21  9:12 UTC (permalink / raw)
  To: ptxdist

From: Ladislav Michl <ladis@triops.cz>

Enable SELinux support when the global option is set instead of always
disabling it.

Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
 rules/util-linux.in   | 1 +
 rules/util-linux.make | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/util-linux.in b/rules/util-linux.in
index 534bc8cbe..1683be440 100644
--- a/rules/util-linux.in
+++ b/rules/util-linux.in
@@ -9,6 +9,7 @@ menuconfig UTIL_LINUX
 	select HOST_MESON
 	select NCURSES				if UTIL_LINUX_USES_NCURSES
 	select PAM				if UTIL_LINUX_USES_PAM
+	select LIBSELINUX			if GLOBAL_SELINUX
 
 if UTIL_LINUX
 
diff --git a/rules/util-linux.make b/rules/util-linux.make
index 25f3752b3..383d25f0e 100644
--- a/rules/util-linux.make
+++ b/rules/util-linux.make
@@ -191,7 +191,7 @@ UTIL_LINUX_CONF_OPT	:= \
 	-Dprogram-tests=false \
 	-Dpython=false \
 	-Dreadline=disabled \
-	-Dselinux=disabled \
+	-Dselinux=$(call ptx/endis, PTXCONF_GLOBAL_SELINUX)d \
 	-Dslang=disabled \
 	-Dsmack=disabled \
 	-Dstatic-programs= \
-- 
2.47.3




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-21  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21  9:12 [ptxdist] [PATCH] util-linux: follow GLOBAL_SELINUX Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox