libvirt/src/conf
Laine Stump 012d69dff1 network: fix crash when portgroup has no name
This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=879473

The name attribute is required for portgroup elements (yes, the RNG
specifies that), and there is code in libvirt that assumes it is
non-null.  Unfortunately, the portgroup parsing function wasn't
checking for lack of portgroup. One adverse result of this was that
attempts to update a network by adding a portgroup with no name would
cause libvirtd to segfault. For example:

   virsh net-update default add portgroup "<portgroup default='yes'/>"

This patch causes virNetworkPortGroupParseXML to fail if no name is
specified, thus avoiding any later problems.
2012-11-28 11:59:30 -05:00
..
capabilities.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
capabilities.h capabilities: defaultConsoleTargetType can depend on architecture 2012-11-09 09:20:59 -07:00
cpu_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
device_conf.c conf: fix virDevicePCIAddressEqual args 2012-10-15 04:03:06 -04:00
device_conf.h conf: fix virDevicePCIAddressEqual args 2012-10-15 04:03:06 -04:00
domain_audit.c Log an audit message with the LXC init pid 2012-11-22 10:46:40 +00:00
domain_audit.h Log an audit message with the LXC init pid 2012-11-22 10:46:40 +00:00
domain_conf.c conf: check the return value of virXPathNodeSet 2012-11-29 00:00:39 +08:00
domain_conf.h Add Gluster protocol as supported network disk backend 2012-11-27 10:19:22 +01:00
domain_event.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
domain_event.h Add support for SUSPEND_DISK event 2012-10-15 12:09:10 +02:00
domain_nwfilter.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
domain_nwfilter.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
interface_conf.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
interface_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_bandwidth_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_bandwidth_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_vlan_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_vlan_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_vport_profile_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
netdev_vport_profile_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
network_conf.c network: fix crash when portgroup has no name 2012-11-28 11:59:30 -05:00
network_conf.h net: Change argument type of virNetworkObjIsDuplicate() 2012-11-02 13:28:39 +01:00
node_device_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
node_device_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_conf.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
nwfilter_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_ipaddrmap.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_ipaddrmap.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_params.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_params.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
secret_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
secret_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
snapshot_conf.c conf: snapshot: check return value of virDomainSnapshotObjListNum 2012-11-29 00:00:39 +08:00
snapshot_conf.h snapshot: implement new filter sets 2012-11-19 14:16:51 -07:00
storage_conf.c conf: check the return value of virXPathNodeSet 2012-11-29 00:00:39 +08:00
storage_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_encryption_conf.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_encryption_conf.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virconsole.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
virconsole.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00