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

diff --git a/rules/udev.in b/rules/udev.in
index b446138db..db0fddd48 100644
--- a/rules/udev.in
+++ b/rules/udev.in
@@ -23,6 +23,7 @@ menuconfig UDEV_LEGACY
 	select LIBKMOD
 	select LIBBLKID
 	select HOST_GPERF	if UDEV_LEGACY_KEYMAPS
+	select LIBSELINUX	if GLOBAL_SELINUX
 	depends on SYSTEMD = n
 	help
 	  udev provides a dynamic device directory containing only the files for
diff --git a/rules/udev.make b/rules/udev.make
index 4f5c9d755..a0c158f11 100644
--- a/rules/udev.make
+++ b/rules/udev.make
@@ -54,7 +54,7 @@ UDEV_LEGACY_CONF_OPT	:= \
 	--$(call ptx/endis,PTXCONF_UDEV_LEGACY_MTD_PROBE)-mtd_probe \
 	--$(call ptx/endis,PTXCONF_UDEV_LEGACY_PERSISTENT_GENERATOR)-rule_generator \
 	--disable-floppy \
-	--without-selinux \
+	--$(call ptx/wwo, PTXCONF_GLOBAL_SELINUX)-selinux \
 	--with-usb-ids-path=/usr/share/usb.ids \
 	--with-pci-ids-path=/usr/share/pci.ids
 
-- 
2.47.3




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

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