mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] lsof: follow GLOBAL_SELINUX
@ 2026-11-21  9:08 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2026-11-21  9:08 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/lsof.in   | 1 +
 rules/lsof.make | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/lsof.in b/rules/lsof.in
index 13576261e..4561326e4 100644
--- a/rules/lsof.in
+++ b/rules/lsof.in
@@ -5,6 +5,7 @@ comment "BusyBox' lsof is selected!"
 config LSOF
 	tristate
 	select LIBTIRPC
+	select LIBSELINUX	if GLOBAL_SELINUX
 	depends on !BUSYBOX_LSOF || ALLYES
 	prompt "lsof"
 	help
diff --git a/rules/lsof.make b/rules/lsof.make
index bfe2c9c44..a23654804 100644
--- a/rules/lsof.make
+++ b/rules/lsof.make
@@ -36,7 +36,7 @@ LSOF_CONF_OPT	:= \
 	--disable-no-sock-security \
 	$(GLOBAL_LARGE_FILE_OPTION) \
 	--with-libtirpc  \
-	--without-selinux
+	--$(call ptx/wwo, PTXCONF_GLOBAL_SELINUX)-selinux
 
 LSOF_MAKE_OPT	:= \
 	man8_MANS=
-- 
2.47.3




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

only message in thread, other threads:[~2026-11-21  9:09 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:08 [ptxdist] [PATCH] lsof: 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