libvirt: Enable selinux if selinux is available
PATCH 1/1 libvirt: Enable selinux if selinux is available
From: Lei Yang <[email protected]>
Enable selinux when "DISTRO_FEATURES" contains selinux
Signed-off-by Lei Yang <[email protected]>
--- 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
@@ -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
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
Signed-off-by Lei Yang <[email protected]>--- 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@@ -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"