NetworkManager/src/settings/plugins/ifnet
Thomas Haller 7b807b11cc settings: avoid duplicate UUID in settings
When adding a connection to NMSettings we did not check for
duplicate connection UUIDs (which could for example happen
if two different plugins report a conflicting UUID).
Also, we would not check that an already added connection
changes it's UUID.

Both could lead to have duplicate connections (by UUID).

Avoid that two ways:
- when adding a connection to NMSettings, ensure that we don't add
  a conflicting UUID. Otherwise just bail out and do nothing.
- when modifying a connection that is already added to NMSettings,
  enforce that the UUID cannot change. Otherwise fail with error.

For ifcfg-rh plugin this situation still can happen during reload.
In this case error out and refuse to update the connection. After
all, the user configured invalid UUIDs.

https://bugzilla.redhat.com/show_bug.cgi?id=1171751
2015-01-13 16:41:30 +01:00
..
tests all: consistently include config.h 2014-11-13 17:18:42 -05:00
connection_parser.c libnm: add a type argument to nm_utils_uuid_generate_from_string() 2014-12-04 17:02:22 +01:00
connection_parser.h settings: implement ability to add connections without saving them to disk 2013-05-28 12:26:56 -05:00
Makefile.am settings: drop plugin-specific error domains 2014-10-22 08:29:09 -04:00
net_parser.c ifnet: fix a crash in ifnet settings plugin (bgo #737645) 2015-01-13 10:27:52 +01:00
net_parser.h settings: use NMConfig directly rather than reparsing NetworkManager.conf 2013-04-03 10:23:48 -04:00
net_utils.c libnm: allow zero prefix length for NMIPRoute 2014-11-24 18:02:46 +01:00
net_utils.h libnm-core: extract NMSettingIPConfig superclass out of IP4, IP6 classes 2014-11-07 07:49:40 -05:00
nm-ifnet-connection.c settings: log connection diffs in replace_settings only where appropriate 2015-01-13 11:44:05 +01:00
nm-ifnet-connection.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
plugin.c settings: avoid duplicate UUID in settings 2015-01-13 16:41:30 +01:00
plugin.h settings: use NMConfig directly rather than reparsing NetworkManager.conf 2013-04-03 10:23:48 -04:00
wpa_parser.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
wpa_parser.h ifnet: use SYSCONFDIR not /etc 2011-12-12 20:04:25 -06:00