]> xenbits.xensource.com Git - libvirt.git/commit
virDomainCreate(XML)WithFiles: Add check for VIR_DRV_FEATURE_FD_PASSING
authorPeter Krempa <pkrempa@redhat.com>
Wed, 16 Feb 2022 15:33:22 +0000 (16:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Feb 2022 12:15:46 +0000 (13:15 +0100)
commit1c71e06619c769bd14b64fc9f43408d30de81884
tree524f7e5555d1838b3aa2671a9b7547ddbbd90e49
parentef476708f31073c3816a42fe626a33bc405445dd
virDomainCreate(XML)WithFiles: Add check for VIR_DRV_FEATURE_FD_PASSING

All APIs using FD passing have this check to prevent sending a
'VIR_NET_CALL_WITH_FDS' to an older daemon but
virDomainCreateXMLWithFiles was missing it.

Now the LXC driver was historically not exposing
VIR_DRV_FEATURE_FD_PASSING, but that is not a problem as LXC always goes
through the remote driver which intercepts it and injects
VIR_DRV_FEATURE_FD_PASSING when it was implemented.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/libvirt-domain.c