Skip to contentSkip to conversation

libvirt: Enable selinux if selinux is available

PATCH In review [email protected] 2 participants 2 messages May 29, 2013 – May 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvirt: Enable selinux if selinux is available

From: Lei Yang <[email protected]>

Enable selinux when "DISTRO_FEATURES" contains selinux

---
 recipes-extended/libvirt/libvirt_1.0.3.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes-extended/libvirt/libvirt_1.0.3.bb +2 -2
index 989b8b1..b0a4e0a 100644
@@ -112,7 +112,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
 
 # full config
 PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \
-	           polkit lxc test remote macvtap libvirtd netcf udev python"
+	           polkit lxc test remote macvtap libvirtd netcf udev python ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
 
 PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu"
 PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
@@ -136,7 +136,7 @@ PACKAGECONFIG[libvirtd] = "--with-libvirtd,--without-libvirtd"
 PACKAGECONFIG[netcf] = "--with-netcf,--without-netcf,netcf,netcf"
 PACKAGECONFIG[dtrace] = "--with-dtrace,--without-dtrace,,"
 PACKAGECONFIG[udev] = "--with-udev --with-pciaccess,--without-udev,udev libpciaccess,"
-
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 # Enable the Python tool support
 require libvirt-python.inc
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 3 lines · On Wed, May 29, 2013 at 2:55 AM, <[email protected]> wrote:

From: Lei Yang <[email protected]>

Enable selinux when "DISTRO_FEATURES" contains selinux'

Looks good to me. Staged locally, I'll push it out soon.

Bruce

Quoted 29 lines
---
 recipes-extended/libvirt/libvirt_1.0.3.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes-extended/libvirt/libvirt_1.0.3.bb +2 -3
index 989b8b1..b0a4e0a 100644
@@ -112,7 +112,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
 
 # full config
 PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \
-                  polkit lxc test remote macvtap libvirtd netcf udev python"
+                  polkit lxc test remote macvtap libvirtd netcf udev python ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
 
 PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu"
 PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
@@ -136,7 +136,7 @@ PACKAGECONFIG[libvirtd] = "--with-libvirtd,--without-libvirtd"
 PACKAGECONFIG[netcf] = "--with-netcf,--without-netcf,netcf,netcf"
 PACKAGECONFIG[dtrace] = "--with-dtrace,--without-dtrace,,"
 PACKAGECONFIG[udev] = "--with-udev --with-pciaccess,--without-udev,udev libpciaccess,"
-
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 # Enable the Python tool support
 require libvirt-python.inc
 
--
Quoted 2 lines

1.7.1

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"