mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
907a39e735
There are many aspects of the guest XML which result in the SELinux driver applying file labelling. With the increasing configuration options it is desirable to test this behaviour. It is not possible to assume that the test suite has the ability to set SELinux labels. Most filesystems though will support extended attributes. Thus for the purpose of testing, it is possible to extend the existing LD_PRELOAD hack to override setfilecon() and getfilecon() to simply use the 'user.libvirt.selinux' attribute for the sake of testing. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
10 lines
193 B
Plaintext
10 lines
193 B
Plaintext
dnl The libattr.so library
|
|
|
|
AC_DEFUN([LIBVIRT_CHECK_ATTR],[
|
|
LIBVIRT_CHECK_LIB([ATTR], [attr], [getxattr], [attr/xattr.h])
|
|
])
|
|
|
|
AC_DEFUN([LIBVIRT_RESULT_ATTR],[
|
|
LIBVIRT_RESULT_LIB([ATTR])
|
|
])
|