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] networkmanager: follow GLOBAL_SELINUX
Date: Sat, 21 Nov 2026 10:09:27 +0100	[thread overview]
Message-ID: <awFfx0E8FUc7wT4C@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/networkmanager.in   | 1 +
 rules/networkmanager.make | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index cd75df1aa..13be5f7fb 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -32,6 +32,7 @@ menuconfig NETWORKMANAGER
 	select WPA_SUPPLICANT			if NETWORKMANAGER_WIRELESS && RUNTIME
 	select WPA_SUPPLICANT_CTRL_IFACE_DBUS	if NETWORKMANAGER_WIRELESS && RUNTIME
 	select ROOTFS_VAR_LIB			if RUNTIME
+	select LIBSELINUX			if GLOBAL_SELINUX
 	prompt "networkmanager                "
 	help
 	  NetworkManager is a tool to automate network configuration as far as
diff --git a/rules/networkmanager.make b/rules/networkmanager.make
index f2e53883f..9466bd62b 100644
--- a/rules/networkmanager.make
+++ b/rules/networkmanager.make
@@ -77,7 +77,7 @@ NETWORKMANAGER_CONF_OPT = \
 	-Dqt=false \
 	-Dreadline=$(call ptx/ifdef,PTXCONF_NETWORKMANAGER_NMCLI,libreadline,none) \
 	-Dresolvconf=false \
-	-Dselinux=false \
+	-Dselinux=$(call ptx/truefalse, PTXCONF_GLOBAL_SELINUX) \
 	-Dsession_tracking=no \
 	-Dsession_tracking_consolekit=false \
 	-Dsuspend_resume=$(call ptx/ifdef,PTXCONF_NETWORKMANAGER_SYSTEMD_UNIT,systemd,consolekit) \
-- 
2.47.3




                 reply	other threads:[~2026-11-21  9:09 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=awFfx0E8FUc7wT4C@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