Skip to contentSkip to conversation

lvm2: disable selinux for host

PATCH New Baruch Siach 2 participants 4 messages Oct 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 lvm2: disable selinux for host

There is no need for selinux support in the host lvm2 package.

Should fix:
http://autobuild.buildroot.net/results/6cd/6cde658da1fa815c157acf36b39c10a8d885e9a9/
http://autobuild.buildroot.net/results/430/43071433814a3176256687720c1d665f41748484/
http://autobuild.buildroot.net/results/ced/cedd7ff4b287d7b71612134444964dc847cc6062/

---
 package/lvm2/lvm2.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/lvm2/lvm2.mk +2 -1
index 9880c12bf05e..79691ddec6f6 100644
@@ -59,7 +59,8 @@ HOST_LVM2_CONF_OPTS = \
 	--disable-dmeventd \
 	--disable-applib \
 	--disable-fsadm \
-	--disable-readline
+	--disable-readline \
+	--disable-selinux
 HOST_LVM2_MAKE_OPTS = device-mapper
 HOST_LVM2_INSTALL_OPTS = install_device-mapper
 
Signature · 1 line
2.14.2
#1 lore raw

PATCH 2/2 lvm2: optionally depend on libselinux

---
 package/lvm2/lvm2.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/lvm2/lvm2.mk +7 -0
index 79691ddec6f6..20e0dd0d5c36 100644
@@ -35,6 +35,13 @@ else
 LVM2_CONF_OPTS += --disable-readline
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+LVM2_CONF_OPTS += --enable-selinux
+LVM2_DEPENDENCIES += libselinux
+else
+LVM2_CONF_OPTS += --disable-selinux
+endif
+
 ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),)
 LVM2_MAKE_OPTS = device-mapper
 LVM2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install_device-mapper
Signature · 1 line
2.14.2
#3 lore raw

PATCH 1/2 lvm2: disable selinux for host

In reply to Baruch Siach
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

There is no need for selinux support in the host lvm2 package. Should fix:
http://autobuild.buildroot.net/results/6cd/6cde658da1fa815c157acf36b39c10a8d885e9a9/
http://autobuild.buildroot.net/results/430/43071433814a3176256687720c1d665f41748484/
http://autobuild.buildroot.net/results/ced/cedd7ff4b287d7b71612134444964dc847cc6062/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard