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

diff --git a/rules/openvpn.in b/rules/openvpn.in
index 4cafe35f7..f00b532a2 100644
--- a/rules/openvpn.in
+++ b/rules/openvpn.in
@@ -14,6 +14,7 @@ menuconfig OPENVPN
 	select BUSYBOX_FEATURE_IP_ROUTE	if BUSYBOX_IP && RUNTIME
 	select IPROUTE2			if !BUSYBOX_IP && RUNTIME
 	select IPROUTE2_IP		if !BUSYBOX_IP && RUNTIME
+	select LIBSELINUX		if GLOBAL_SELINUX
 	help
 	  virtual private network daemon
 
diff --git a/rules/openvpn.make b/rules/openvpn.make
index f11c07060..70d7a0eaa 100644
--- a/rules/openvpn.make
+++ b/rules/openvpn.make
@@ -78,7 +78,7 @@ OPENVPN_CONF_OPT	:= \
 	--disable-pedantic \
 	--disable-werror \
 	--disable-strict-options \
-	--disable-selinux \
+	--$(call ptx/endis, PTXCONF_GLOBAL_SELINUX)-selinux \
 	--$(call ptx/endis, PTXCONF_OPENVPN_SYSTEMD)-systemd \
 	--disable-async-push \
 	--disable-wolfssl-options-h \
-- 
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:09 [ptxdist] [PATCH] openvpn: 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