
On 04/02/2014 02:55 AM, Jincheng Miao wrote:
Sorry, this is not root cause of this problem: no libsecurityselinuxhelper.so generated. The macro HAVE_SELINUX_LXC_CONTEXTS_PATH can handle this no selinux_lxc_contexts_path problem.
Then I checked the tests/Makefile.am: 936 if WITH_SECDRIVER_SELINUX 937 if WITH_ATTR 938 if WITH_TESTS 939 noinst_LTLIBRARIES += libsecurityselinuxhelper.la 940 else ! WITH_TESTS 941 check_LTLIBRARIES += libsecurityselinuxhelper.la 942 endif ! WITH_TESTS
The libsecurityselinuxhelper.la is surrounded by the macro WITH_ATTR, so if there is no WITH_ATTR defined, libsecurityselinuxhelper.so will not be created.
The ad-hoc solution is install libattr-devel, and re-configure.
Thanks for analyzing this; looks like there's definitely some patches needed to tests/Makefile.am. It's on my todo list, although I'm not going to be upset if someone beats me to it. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org