mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] smartmontools: follow GLOBAL_SELINUX
Date: Sat, 21 Nov 2026 10:11:32 +0100	[thread overview]
Message-ID: <awFgRITK8W27ZAVE@lenoch> (raw)

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




                 reply	other threads:[~2026-11-21  9:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awFgRITK8W27ZAVE@lenoch \
    --to=oss-lists@triops.cz \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox