-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: New "networkmanager.passthrough" structure (LP: #2080301) #522
base: main
Are you sure you want to change the base?
Commits on Nov 8, 2024
-
parse: new structure for "passthrough"
The networkmanager.passthrough section stores raw keyfile information using a format that can be tricky to interpret. It will concatenate the group and key names separated by dots. Unfortunately, Network Manager accepts multiple dots in the middle of both the group and key names. Because of that it's hard, if even possible, to determine where the strings must be split. Ex: networkmanager: passthrough: group_name.key_name: value1 group_name.key_name1: value2 The new format stores the same information in YAML mappings. By using this format, parsing the group and key names is not needed anymore. Ex: networkmanager: passthrough: group_name: key_name1: value1 key_name2: value2 The datalist data structure was replaced by hash tables. The entire passthrough section is represented by a hash table indexed by the group name. Each entry is also a hash table representing all the key/value entries and it's indexed by the key name.
Configuration menu - View commit details
-
Copy full SHA for a67463a - Browse repository at this point
Copy the full SHA a67463aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2d5e8c - Browse repository at this point
Copy the full SHA a2d5e8cView commit details -
config_fuzzer: run generate -i against the entire dataset
Now that the datalist was replaced with hash tables, run the generator with --ignore-errors against the entire dataset. The datalist was leaking memory and causing ASAN to crash the test. Also limit the value of path-cost to avoid triggering a g_assert(v < G_MACUINT).
Configuration menu - View commit details
-
Copy full SHA for 23cd665 - Browse repository at this point
Copy the full SHA 23cd665View commit details -
tests: update config_fuzzer with new passthrough format
Now it will generate a mix of old and new formats in the passthrough section.
Configuration menu - View commit details
-
Copy full SHA for f3762c9 - Browse repository at this point
Copy the full SHA f3762c9View commit details -
nm: fix crashes when errors are ignored
When --ignore-errors is used, some netdefs might arrive at the NM config writers in a bad state. In such cases we just skip them. Found with config_fuzzer.
Configuration menu - View commit details
-
Copy full SHA for f94a59f - Browse repository at this point
Copy the full SHA f94a59fView commit details -
parse: fix uninitialized variable
Fixes the build on Fedora 41: In file included from /usr/include/glib-2.0/glib.h:117, from ../src/parse.c:25: In function ‘g_autoptr_cleanup_generic_gfree’, inlined from ‘get_ip_family’ at ../src/parse.c:1918:22: /usr/include/glib-2.0/glib/glib-autocleanups.h:32:3: error: ‘ip_str’ may be used uninitialized [-Werror=maybe-uninitialized] 32 | g_free (*pp); | ^~~~~~~~~~~~ ../src/parse.c: In function ‘get_ip_family’: ../src/parse.c:1918:22: note: ‘ip_str’ was declared here 1918 | g_autofree char *ip_str; | ^~~~~~ cc1: all warnings being treated as errors
Configuration menu - View commit details
-
Copy full SHA for b954585 - Browse repository at this point
Copy the full SHA b954585View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8addc9a - Browse repository at this point
Copy the full SHA 8addc9aView commit details -
The RPM build started to fail on Fedora 41: find-debuginfo: starting Extracting debug info from 4 files gdb-add-index: Failed to find a useable GDB binary
Configuration menu - View commit details
-
Copy full SHA for a381373 - Browse repository at this point
Copy the full SHA a381373View commit details