NetworkManager/src/settings/plugins/keyfile
Thomas Haller 7510e67f0a 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
(cherry picked from commit 7b807b11cc)
2015-03-11 17:07:55 +01:00
..
tests keyfile/writer: fix password_raw_writer() to write NMSetting8021x:password-raw 2015-02-19 13:13:07 +01:00
common.h settings: drop plugin-specific error domains 2014-10-22 08:29:09 -04:00
Makefile.am settings: drop plugin-specific error domains 2014-10-22 08:29:09 -04:00
nm-keyfile-connection.c settings: log connection diffs in replace_settings only where appropriate 2015-03-11 17:07:55 +01:00
nm-keyfile-connection.h settings: add NMSettingsConnection:filename 2015-01-14 11:35:17 -05:00
plugin.c settings: avoid duplicate UUID in settings 2015-03-11 17:07:55 +01:00
plugin.h settings: drop plugin-specific error domains 2014-10-22 08:29:09 -04:00
reader.c settings: change algorithm for UUID generation based on strings 2014-12-04 17:02:22 +01:00
reader.h settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
utils.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
utils.h keyfile: cleanup logging 2015-03-11 17:07:55 +01:00
writer.c keyfile: simplify g_return() checks for _internal_write_connection() 2015-03-11 17:07:55 +01:00
writer.h settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00