Re: [PATCH] Fix build compat with older libselinux for LXC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/16/2012 07:20 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Most versions of libselinux do not contain the function
> selinux_lxc_contexts_path() that the security driver
> recently started using for LXC. We must add a conditional
> check for it in configure and then disable the LXC security
> driver for builds where libselinux lacks this function.
> 
> NB although this qualifies as a build breaker fix, I'm
>    not pushing until it has had review
> 
> * configure.ac: Check for selinux_lxc_contexts_path
> * src/security/security_selinux.c: Disable LXC security
>   if selinux_lxc_contexts_path() is missing
> ---
>  configure.ac                    |    1 +
>  src/security/security_selinux.c |   19 ++++++++++++++++---
>  2 files changed, 17 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]