* [ptxdist] [PATCH] lvm2: 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/lvm2.in | 1 +
rules/lvm2.make | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/rules/lvm2.in b/rules/lvm2.in
index bb95799e6..6cac60051 100644
--- a/rules/lvm2.in
+++ b/rules/lvm2.in
@@ -9,6 +9,7 @@ menuconfig LVM2
select NCURSES
select SYSTEMD if LVM2_SYSTEMD
select BASH if (LVM2_FSADM || LVM2_LVMDUMP) && RUNTIME
+ select LIBSELINUX if GLOBAL_SELINUX
prompt "lvm2 "
help
LVM2 refers to a new userspace toolset that provide logical volume management
diff --git a/rules/lvm2.make b/rules/lvm2.make
index b5aea9873..3da0109e7 100644
--- a/rules/lvm2.make
+++ b/rules/lvm2.make
@@ -79,7 +79,7 @@ LVM2_CONF_OPT := \
--enable-dmeventd \
--enable-cmdlib \
--disable-dmfilemapd \
- --disable-selinux \
+ --$(call ptx/endis, PTXCONF_GLOBAL_SELINUX)-selinux \
--enable-blkzeroout \
--disable-nls \
--without-blkid \
--
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] lvm2: 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