]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: network: reject name containing '/'
authorCole Robinson <crobinso@redhat.com>
Tue, 26 Apr 2016 16:47:42 +0000 (12:47 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 2 May 2016 14:06:04 +0000 (10:06 -0400)
commit454f739f24a936aedec48c3a3ba659b374ce251a
tree40c2029116dc00fe2e2a33303ba72e46b24c7934
parentb1fc6a7b73f2058742b4c980c2e3573e9d0c65a2
conf: network: reject name containing '/'

Trying to define a network name containing an embedded '/'
will immediately fail when trying to write the XML to disk.
This patch explicitly rejects names containing a '/'

Besides the network bridge driver, the only other network
implementation is a very thin one for virtualbox, which seems to
use the network name as a host interface name, which won't
accept '/' anyways, so I think this is fine to do unconitionally.

https://bugzilla.redhat.com/show_bug.cgi?id=787604
src/conf/network_conf.c