Re: [PATCH 2/4] configure: Make ACL mandatory when building the QEMU driver

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

 



On Tue, Feb 14, 2017 at 04:33:09PM +0100, Andrea Bolognani wrote:
> When we're building a private /dev for the isolated QEMU
> process, we want to be able to replicate the contents of
> the original /dev as closely as possible, including ACLs.
> 
> To ensure that's always possible, make ACL support mandatory
> when the QEMU driver is enabled.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1421036
> ---
>  m4/virt-acl.m4 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/m4/virt-acl.m4 b/m4/virt-acl.m4
> index f7d1c6d..7a8b8e5 100644
> --- a/m4/virt-acl.m4
> +++ b/m4/virt-acl.m4
> @@ -21,6 +21,10 @@ AC_DEFUN([LIBVIRT_CHECK_ACL], [
>  
>    AC_CHECK_HEADERS([sys/acl.h])
>  
> +  if test "x$ac_cv_header_sys_acl_h:x$with_qemu" = "xno:xyes"; then
> +    AC_MSG_ERROR([Unable to find <sys/acl.h>, required by qemu driver])
> +  fi

I understand the desire to simplify the code by assuming the libacl
APIs always exist, but we shouldn't do it this way. Instead we should
follow our normal practice of creating a src/util/viracl.{c,h} file
which wrap the APIs and providing no-op stubs which just raise an
error when the library is missing at build time.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

--
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]
  Powered by Linux