mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 18:00:10 +01:00
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
|
||
|---|---|---|
| .. | ||
| tests | ||
| common.h | ||
| Makefile.am | ||
| nm-keyfile-connection.c | ||
| nm-keyfile-connection.h | ||
| plugin.c | ||
| plugin.h | ||
| reader.c | ||
| reader.h | ||
| utils.c | ||
| utils.h | ||
| writer.c | ||
| writer.h | ||