[meta-virtualization] [PATCH] libvirt: Enable selinux if selinux is available

Bruce Ashfield bruce.ashfield at gmail.com
Wed May 29 19:31:51 PDT 2013


On Wed, May 29, 2013 at 2:55 AM,  <lei.yang at windriver.com> wrote:
> From: Lei Yang <lei.yang at windriver.com>
>
> Enable selinux when "DISTRO_FEATURES" contains selinux'

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

Bruce

>
> Signed-off-by: Lei Yang <lei.yang at windriver.com>
> ---
>  recipes-extended/libvirt/libvirt_1.0.3.bb |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-extended/libvirt/libvirt_1.0.3.bb b/recipes-extended/libvirt/libvirt_1.0.3.bb
> index 989b8b1..b0a4e0a 100644
> --- a/recipes-extended/libvirt/libvirt_1.0.3.bb
> +++ b/recipes-extended/libvirt/libvirt_1.0.3.bb
> @@ -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
>
> --
> 1.7.1
>



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



More information about the meta-virtualization mailing list