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

diff --git a/rules/qemu.in b/rules/qemu.in
index ecd38004f..29295c686 100644
--- a/rules/qemu.in
+++ b/rules/qemu.in
@@ -21,6 +21,7 @@ menuconfig QEMU
 	select KEYUTILS		if QEMU_KEYUTILS
 	select ALSA_LIB 	if QEMU_ALSA
 	select PIPEWIRE		if QEMU_PIPEWIRE
+	select LIBSELINUX	if GLOBAL_SELINUX
 	help
 	  QEMU is a generic and open source machine emulator and
 	  virtualizer.
diff --git a/rules/qemu.make b/rules/qemu.make
index 3d2198d2b..2b74ba287 100644
--- a/rules/qemu.make
+++ b/rules/qemu.make
@@ -172,7 +172,7 @@ QEMU_CONF_OPT	:= \
 	--$(call ptx/endis, PTXCONF_QEMU_SDL)-sdl \
 	--disable-sdl-image \
 	--disable-seccomp \
-	--disable-selinux \
+	--$(call ptx/endis, PTXCONF_GLOBAL_SELINUX)-selinux \
 	--enable-slirp \
 	--disable-slirp-smbd \
 	--disable-smartcard \
-- 
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:10 [ptxdist] [PATCH] qemu: 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