[libvirt] [PATCH 0/3] Add further testing of SELinux security driver

Daniel P. Berrange berrange at redhat.com
Wed Sep 19 18:09:21 UTC 2012


This patch series expands on previous work to test the SELinux
security driver via a LD_PRELOAD hack. This time we are testing
the file labelling, by setting/getting private xattrs, instead
of the actual SELinux xattrs.

In doing this I had need to use libattr, and got fed up with
duplicating the usual m4 black magic. Thus I wrote a helper
macro for simplifying library checks, and then a further
macro for the actual libattr check. The configure.ac file
thus only gains two lines

  LIBVIRT_CHECK_LIBATTR

  ...

  LIBVIRT_RESULT_LIBATTR

In the long run, I'd like to replace all our existing library
checks with these macros, to try & get our configure.ac script
back to a reasonable level of sanity.




More information about the libvir-list mailing list