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

diff --git a/rules/smartmontools.in b/rules/smartmontools.in
index d43a78bb9..9e3af8839 100644
--- a/rules/smartmontools.in
+++ b/rules/smartmontools.in
@@ -8,6 +8,7 @@ menuconfig SMARTMONTOOLS
 	select LIBC_M
 	select GCCLIBS_CXX
 	select GCCLIBS_GCC_S
+	select LIBSELINUX			if GLOBAL_SELINUX
 	help
 	  The smartmontools package contains two utility programs (smartctl and smartd)
 	  to control and monitor storage systems using the Self-Monitoring, Analysis
diff --git a/rules/smartmontools.make b/rules/smartmontools.make
index 49bb608c7..892e71021 100644
--- a/rules/smartmontools.make
+++ b/rules/smartmontools.make
@@ -38,7 +38,7 @@ SMARTMONTOOLS_CONF_OPT	:= \
 	--enable-fast-lebe \
 	--without-update-smart-drivedb \
 	--without-gnupg \
-	--without-selinux \
+	--$(call ptx/wwo, PTXCONF_GLOBAL_SELINUX)-selinux \
 	--without-libcap-ng \
 	--$(call ptx/wwo, PTXCONF_SMARTMONTOOLS_SYSTEMD_UNIT)-libsystemd \
 	$(call ptx/ifdef, PTXCONF_SMARTMONTOOLS_SYSTEMD_UNIT,--with-systemdsystemunitdir=/usr/lib/systemd/system) \
-- 
2.47.3




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

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