]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix build compat with older libselinux for LXC
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 16 May 2012 13:18:25 +0000 (14:18 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 16 May 2012 14:38:29 +0000 (15:38 +0100)
commit7ba66ef285aeb9bd87a43a47dfa15d74d3f0ec46
treeae892e34e01f90011f88054380a4ca222966ab9f
parent51bcb09fe946c01ff7e0f94fee0be9d6411ca2ad
Fix build compat with older libselinux for LXC

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.

* 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
src/security/security_selinux.c