]> xenbits.xensource.com Git - libvirt.git/commit
libxl: Reject VM config referencing nwfilters
authorJim Fehlig <jfehlig@suse.com>
Fri, 6 Sep 2024 22:08:05 +0000 (16:08 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 10 Oct 2024 14:39:12 +0000 (08:39 -0600)
commitd721b6840f835760b665e4ebdab7eaad03395e9b
tree53767b7d210b7ee3ce036b11bfb885fc8dc0ce8b
parent068771068d79ac88c114decb6608988a2a7d8f94
libxl: Reject VM config referencing nwfilters

The Xen libxl driver does not support nwfilter. Introduce a
deviceValidateCallback function with a check for nwfilters, returning
VIR_ERR_CONFIG_UNSUPPORTED if any are found. Also fail to start any
existing VMs referencing nwfilters.

Drivers generally ignore unrecognized XML configuration, but ignoring
a user's request to filter VM network traffic can be viewed as a
security issue.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/libxl/libxl_domain.c