Commit graph

34587 commits

Author SHA1 Message Date
David Ward
09e2de8b68 spec: fix scriptlet dependencies
Adjust %postun to handle missing udev, in the same way %post does.
This permits installation inside a container without udev.

/usr/sbin/update-alternatives is needed for the initscripts-updown
subpackage only.
2026-04-09 13:33:32 +00:00
David Ward
372fb5792c veth: fix updating peer when link changed
When creating the first device in a veth pair, the peer ifindex is
valid, but the peer device does not exist yet. This should be set
when update_properties() is called for the second device, but fix
the conditional.
2026-04-09 13:33:32 +00:00
David Ward
631127d2e5 macvlan: fix D-Bus property name 2026-04-09 13:33:32 +00:00
Jan Vaclav
fe793cd783 merge: branch 'jv/tui-bond-other'
nmtui/bond: introduce "other options" list

Closes #1805

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2392
2026-04-09 09:54:25 +00:00
Jan Vaclav
0b3db7c6ee nmtui: rename NMTAddressList -> NmtList 2026-04-09 11:33:20 +02:00
Jan Vaclav
6a841072ec nmtui/bond: introduce "other options" list
Bond connections can have options that are not exposed by any widget
in the bond editor. The presence of certain mode-specific options makes
it impossible to change the mode, e.g. from 802.3ad to active-backup
when `lacp_rate` is set.

Introduce an "Other options" list that shows all bond options not
already configurable by a specific widget, and allow the user to edit
them as key=value entries.

Resolves #1805
Resolves: https://redhat.atlassian.net/browse/NMT-1888
2026-04-09 11:33:20 +02:00
Íñigo Huguet
e8f379abb8 merge: branch 'fix/pppd-gateway-empty-ipcp'
pppd-plugin: fix gateway for PPP connections without carrier-provided remote IP

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2383
2026-04-09 08:00:31 +00:00
Ben Hagen
bd0a6356eb pppd-plugin: fix gateway for PPP connections without carrier-provided remote IP
During the dbus-glib to GDBus port in 89228569f (2014), the last-resort
gateway in nm_ip_up() was accidentally changed from peer_opts.hisaddr to
peer_opts.ouraddr. peer_opts.ouraddr is typically 0 when IPCP does not
provide a peer address, causing gateway=0 and broken PPP connectivity
probing/routing behavior.

Restore the original behavior from 369299271 (2008).

Fixes: 89228569f8 ('ppp-manager: port nm-pppd-plugin from dbus-glib to gdbus')
2026-04-09 08:00:12 +00:00
Íñigo Huguet
5e02f13611 merge: branch 'main'
po: Update Serbian (sr) and Serbian Latin (sr@latin) translations

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2385
2026-04-08 13:06:28 +00:00
Марко М. Костић (Marko M. Kostić)
834ae00607 po: Update Serbian Latin translation 2026-04-08 13:05:36 +00:00
Марко М. Костић (Marko M. Kostić)
d9c143ee58 po: Update Serbian translation 2026-04-08 13:05:36 +00:00
Íñigo Huguet
230009b9e8 merge: branch 'ih/sl-po'
po: update Slovenian translations

Closes #1894

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2374
2026-04-08 10:53:34 +00:00
filmsi
253ce99d2c po: update Slovenian translations 2026-04-08 10:53:25 +00:00
Íñigo Huguet
c86ae51240 merge: branch 'fixtypo'
Fix typos

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2371
2026-04-08 10:19:36 +00:00
Hiroyuki Yasuhara
9ca09aa020 cloud-setup/man: fix typo in man nm-cloud-setup 2026-04-08 10:19:23 +00:00
Hiroyuki Yasuhara
a6e133d5f4 libnm/docs: fix typo in man nm-settings-nmcli 2026-04-08 10:19:23 +00:00
Hiroyuki Yasuhara
330cb6a20b docs/libnm: fix typo in libnm.svg 2026-04-08 10:19:23 +00:00
Íñigo Huguet
92bf0178a4 merge: branch 'typo-fixes-2026'
libnmc-setting: fix typos

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2377
2026-04-08 10:17:06 +00:00
Anders Jonsson
e50272de78 libnmc-setting: fix typos 2026-04-08 10:13:31 +00:00
Íñigo Huguet
72950e5d5b merge: branch 'fix/meson'
meson: fix cross-compilation issues

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2380
2026-04-08 10:11:27 +00:00
Andrej Kozemcak
e5d2c7cc6d meson: fix cross-compilation issues
Strip newline from GI_TYPELIB_PATH and LD_LIBRARY_PATH
run_command().stdout() returns the raw shell output including a trailing
newline. When the value is used to build a colon-separated path, the newline
gets embedded at the end of the last path component, making the directory
invalid and causing GObject Introspection to fail with:

  ImportError: Typelib file for namespace 'Gio', version '2.0' not found

Use .strip() to remove leading/trailing whitespace from both env variable
reads.

Fix jansson SONAME detection for cross-compilation
When cross-compiling, jansson's pkg-config 'libdir' variable returns a
path relative to the sysroot (e.g., /usr/lib) without the actual sysroot
prefix.  The host readelf binary cannot find the library at that path.

Fix this by using meson.get_external_property('sys_root', '') to obtain
the sysroot path set by the cross-compilation environment and prepend it
to the library path before calling readelf.

Signed-off-by: Andrej Kozemcak <andrej.kozemcak@siemens.com>
2026-04-08 10:11:13 +00:00
Íñigo Huguet
bb50e8f0f4 merge: branch 'rr/fix-avc-error-2'
core: use GDir to avoid libgvfs loading

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2384
2026-04-08 08:30:37 +00:00
Rahul Rajesh
2e1ee043a7 core: use GDir to avoid libgvfs loading
Replace GFile with GDir to avoid libgvfs and other DBus infra
initialization.

This was done mainly to avoid heavy initialization just for executing
NetworkManager --print-config command.

Resolves: https://redhat.atlassian.net/browse/RHEL-140113
2026-04-08 08:30:18 +00:00
Íñigo Huguet
58f4c81673 merge: branch 'ih/dhcp-client-unknown'
dhcp: improve log message for unknown DHCP plugin

Closes #1917

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2388
2026-04-08 07:50:51 +00:00
Íñigo Huguet
24c50803a7 dhcp: improve log message for unknown DHCP plugin
If a DHCP plugin is unknown, the logs says "DHCP client 'x' not
available". This is the same message that is shown if, for example, it
is a valid DHCP plugin name, but the program is not installed in the
system.

For example, after 'dhclient' was deprecated, now NM is built without
support for it. Then, people with old configs `dhcp=dhclient` get the
message "DHCP client 'dhclient' not available". That seems to mean that
dhclient is not installed.

Show a message "unknown DHCP client" instead.

Fixes https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/work_items/1917
2026-04-08 07:50:41 +00:00
Íñigo Huguet
7f4efc484c merge: branch 'ih/spec'
rpm spec: set polkit_noauth_group=wheel by default

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2391
2026-04-08 07:50:11 +00:00
Íñigo Huguet
1970d8a8cd spec: set polkit_noauth_group=wheel by default
In Fedora there were complains about needing sudo to do changes. We
decided to allow doing changes without additional authentication if
they're done from a local console and an admin account.
2026-04-08 07:49:52 +00:00
Gris Ge
de91bd8070 merge: branch 'jv/clat-macro'
l3cfg: wrap _clat_prefix_is_better() in HAVE_CLAT guard

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2390
2026-04-01 10:06:51 +00:00
Jan Vaclav
66ac355c52 l3cfg: wrap _clat_prefix_is_better() in HAVE_CLAT guard
Fixes the following warning when building without CLAT:
../src/core/nm-l3cfg.c:4157:1: warning: ‘_clat_prefix_is_better’ defined but not used [-Wunused-function]
 4157 | _clat_prefix_is_better(const NMPlatformIP6Address *best,
      | ^~~~~~~~~~~~~~~~~~~~~~

Fixes: a03a245819 ('l3cfg: fix selection of the CLAT IPv6 prefix')
2026-03-31 11:44:42 +02:00
Rahul Rajesh
fb1104d278 release: bump version to 1.57.4 (development) 2026-03-27 09:08:35 -04:00
Beniamino Galvani
5580b982ac merge: branch 'bg/clat-prefix-selection'
l3cfg: fix selection of the CLAT IPv6 prefix

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2378
2026-03-18 17:44:41 +00:00
Beniamino Galvani
a03a245819 l3cfg: fix selection of the CLAT IPv6 prefix
If the router advertises both ULA and GUA prefixes, the CLAT should
select the one that better matches the NAT64 prefix when generating
the additional IPv6 address, as recommended by Internet Draft
draft-ietf-v6ops-claton.

The current implementation just takes the first one, which can cause
problems. For example, if the network is using a public NAT64 server,
the NAT64 prefix is in the GUA range. Choosing a ULA as source address
would not work.

Fixes: f0e77a4354 ('Add support for CLAT to l3cfg')
2026-03-17 14:45:04 +01:00
Beniamino Galvani
7f2745f3b1 libnm-glib-aux: add nm_ip6_addr_rfc6724_label() 2026-03-17 14:45:04 +01:00
Beniamino Galvani
1589346de4 libnm-glib-aux: add nm_ip6_addr_common_prefix_len() 2026-03-17 14:45:03 +01:00
Beniamino Galvani
0b1c6f467e merge: branch 'nmtui-menu'
nmtui: remove "OK" button in main menu

Closes #1816

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2357
2026-03-13 09:55:45 +00:00
Vladislav Tsisyk
1b07f92fae nmtui: remove "OK" button in main menu
Remove the redundant OK button from the main menu, as menu items are activated with Enter.
This simplifies the UI and avoids unnecessary actions.

Closes #1816
2026-03-12 14:01:28 +00:00
Beniamino Galvani
31fcd35b24 merge: branch 'bg/clat-ci'
gitlab-ci: disable CLAT if required libraries are missing

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2362
2026-03-12 10:04:57 +00:00
Beniamino Galvani
7d19805905 build: require libbpf 1.3.0
Version 1.3.0 of the library is needed to support "tcx" program types.
2026-03-12 09:45:03 +00:00
Beniamino Galvani
4e3371964c gitlab-ci: disable CLAT if required libraries are missing
Old Alpine and Debian release don't have the required libraries,
disable CLAT on them.

Fixes: dd3758dd80 ('contrib: Add libbpf and libxdp to dependencies')
2026-03-12 09:45:03 +00:00
Beniamino Galvani
62997ac8c0 merge: branch 'bg/warn-unreachable-gateways'
Warn about directly unreachable gateways

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2360
2026-03-12 07:46:09 +00:00
Beniamino Galvani
589286df78 NEWS: mention the warnings for unreachable gateways 2026-03-11 15:12:15 +01:00
Beniamino Galvani
8b9a702e1d core: emit warning for unreachable gateways 2026-03-11 15:12:15 +01:00
Beniamino Galvani
907508f4bf nmtui: emit warning for unreachable gateways 2026-03-11 15:12:15 +01:00
Beniamino Galvani
ec5f98e7a8 nmcli: emit warning for unreachable gateways 2026-03-11 15:12:15 +01:00
Beniamino Galvani
2b4b8d7e7e libnm-core: add function to get a warning message for unreachable gateways
We are going to print the same warning message in different places
(the daemon, nmcli, nmtui). Add a function to return the message. Note
that the message needs to be translated in clients but not in the
daemon logs.
2026-03-11 15:12:15 +01:00
Beniamino Galvani
f42e422b69 libnm-core: add function to detect directly-unreachable gateways
nm_connection_get_unreachable_gateways() is a non-public function,
available in the daemon and clients, which detects gateways in the
static configuration that are not directly reachable.

Unreachable gateways are often the consequence of user mistakes; we
want to catch them early. In the following commits, warnings will be
emitted when a connection is created/modified/activated and has
unreachable gateways.
2026-03-11 15:12:15 +01:00
Rahul Rajesh
22f4e74942 merge: branch 'rr/fix-avc-error'
core: delay D-Bus type initialization for --print-config

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2376
2026-03-10 12:36:29 +00:00
Till Maas
57bc396c12 core: delay D-Bus type initialization for --print-config
The --print-config option should only read and print the configuration
without initializing any D-Bus infrastructure. However, g_type_ensure()
calls for D-Bus types were happening before the --print-config check,
causing GLib/GIO to set up D-Bus infrastructure and create cache
directories (~/.cache/bus or /root/.cache) unnecessarily.

Move the g_type_ensure() calls to after the --print-config (and
--version) early exits, so they only run when NetworkManager actually
needs to start normally and use D-Bus.

Resolves: https://issues.redhat.com/browse/RHEL-140113

Assisted-by: Claude Code claude-sonnet-4-5@20250929
Signed-off-by: Till Maas <opensource@till.name>
2026-03-06 14:30:23 -05:00
Íñigo Huguet
0e2b679afb merge: branch 'ih/perm_unmanaged'
add API to manage/unmanage devices in a persistent way

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2358
2026-03-06 10:23:58 +00:00
Íñigo Huguet
b6bd9cee87 NEWS: update 2026-03-06 11:21:58 +01:00