Commit Graph

33852 Commits

Author SHA1 Message Date
Michael Biebl
0e83c595f3 Rephrase certain expressions to avoid the usage of the term "allows to" 2025-03-27 09:44:07 +01:00
Michael Biebl
898db303c3 typo fix: allow to -> allow one to
Detected by lintian:

Example:
I: network-manager: typo-in-manual-page "allow to" "allow one to" [usr/share/man/man5/NetworkManager.conf.5.gz:1392]
2025-03-26 19:22:56 +01:00
Michael Biebl
10e58f7c3c typo fix: allows to -> allows one to
Detected by lintian:

Example:
I: network-manager: typo-in-manual-page "allows to" "allows one to" [usr/share/man/man5/NetworkManager.conf.5.gz:1266]
2025-03-26 19:22:01 +01:00
Michael Biebl
a98d85af93 typo fix: succesfully -> successfully
Detected by lintian:
I: network-manager: spelling-error-in-binary succesfully successfully [usr/sbin/NetworkManager]
2025-03-26 18:38:56 +01:00
Beniamino Galvani
5ed963e054 build: remove -flto-partition=none when building with GCC
Older versions of GCC (< 12) have issues building NM with LTO because
they drop libnm symbols added via '_asm__(".symver " ...)', which we
use to support symbols backported to older versions of the DSO.

Nowadays, GCC supports a new "__symver__" attribute that is
LTO-friendly; use that when possible and remove the
-flto-partition=none hack, as it increases memory usage when
compiling.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1714
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2142
2025-03-26 09:25:53 +01:00
Beniamino Galvani
481afec6ea release: fix validation of gitlab token
If the token is wrong or expired, the command still returns
success. Check the content of the reply instead.

Fixes: f05192ada8 ('release.sh: release to freedesktop.org, not to GNOME')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2148
2025-03-25 14:35:55 +01:00
Beniamino Galvani
ea0be49451 merge: branch 'bg/secret-agent-gi'
examples: add secret agent example in python/gi

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2166
2025-03-25 13:34:33 +00:00
Beniamino Galvani
eb24d7cf03 examples: add secret agent example in python/gi
Add an example of a simple secret agent written in Python using
GObject introspection.
2025-03-25 14:32:27 +01:00
Beniamino Galvani
c01168f4f9 libnm: fix GObject introspection annotations for NMSecretAgentOld
Add some missing "(nullable)" annotations to parameters of the
callback functions in NMSecretAgentOld. Otherwise, PyGObject complains
that those parameters cannot be NULL when implementing a secret agent.

Fixes: d595f7843e ('libnm: add libnm/libnm-core (part 1)')
2025-03-25 14:31:26 +01:00
Piotr Drąg
e51de3750e po: Update POTFILES.in and POTFILES.skip
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2154
2025-03-25 11:19:14 +01:00
Íñigo Huguet
050f4e6500 merge: branch 'ih/sl-po'
po: Update Slovenian (sl) po file

Closes #1716

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2156
2025-03-24 14:35:54 +00:00
Íñigo Huguet
b68d25af9b po: Update Slovenian (sl) po file
Contributed-by: @filmsi (https://gitlab.freedesktop.org/filmsi)
Fixes https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1716
2025-03-24 14:32:04 +00:00
Íñigo Huguet
23e42cb73a merge: branch 'ih/fix-lacp-msg'
bond: fix wrong property name in error message

Closes #1720

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2157
2025-03-24 14:31:46 +00:00
Íñigo Huguet
95de3bee86 bond: fix wrong property name in error message
Contributed-by: Jiří Boháč (https://gitlab.freedesktop.org/jbohac)
Fixes https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1720
2025-03-24 14:30:51 +00:00
Íñigo Huguet
45e7e158c1 merge: branch 'ih/nmcli-complete'
nmcli: fix argument completion if nmcli is aliased

Closes #1734

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2159
2025-03-24 14:29:42 +00:00
Íñigo Huguet
78f179b53e nmcli: fix argument completion if nmcli is aliased
If an alias like `nmcli=nmcli --some-arguments` is used, bash completion
doesn't work. Fix it by using `command nmcli` from the nmcli-completion
script, so we ensure that the --complete-args is passed directly to
nmcli binary, not through an alias.

Contributed-by: Jonas Belouadi (@potamides)
Fixes https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1734
2025-03-24 14:29:19 +00:00
Íñigo Huguet
8b8fc44b19 merge: branch 'ih/macvlan-promisc'
libnm: macvlan: specify that promiscuous affects to the parent

Closes #1732

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2160
2025-03-24 14:18:41 +00:00
Íñigo Huguet
1fdcfb7abe libnm: macvlan: specify that promiscuous affects to the parent
Fixes: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1732
Fixes: 4d0192e661 ('libnm-core: add NMSettingMacvlan')
2025-03-24 15:16:04 +01:00
Vladimír Beneš
0d76bec4de release: bump version to 1.53.2 (development) 2025-03-24 11:26:04 +01:00
Beniamino Galvani
a0ff8d20f0 merge: branch 'dnsconfd_plugin_fixes'
dns: Fix invalid memory access on Dnsconfd DBUS error

Closes #1738

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2161
2025-03-24 08:14:50 +00:00
Tomas Korbar
7ba27f7a13 dns: Refactor changing of Dnsconfd plugin state 2025-03-24 07:56:26 +00:00
Tomas Korbar
4ad20787bb dns: Fix invalid memory access on Dnsconfd DBUS error
DBus errors were not properly handled after DBus calls and
that caused SIGSEGV. Now they are checked.

Fixes #1738
Fixes: b8714e86e4 ('dns: introduce configuration_serial support to the dnsconfd plugin')
2025-03-24 07:56:26 +00:00
Íñigo Huguet
42349205dd merge: branch 'ff/makerepo_f40'
contrib/makerepo.sh: fix script for fedpkg 1.44

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2124
2025-03-12 09:17:05 +00:00
Fernando Fernandez Mancera
b281ae0c22 contrib/makerepo.sh: fix script for fedpkg 1.44
If the user of the script still uses fedpkg 1.44 the script fails
because the -build directory doesn't exist.

Now it was tested in both versions.
2025-03-12 09:16:50 +00:00
Jan Vaclav
63b81d893e merge: branch 'jv/accept-localhost-persistent'
policy: accept localhost hostnames if statically configured

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2114
2025-03-12 09:00:56 +00:00
Jan Vaclav
152d71a1f1 policy: accept localhost hostnames if static
Prevents NetworkManager from trying to determine the
transient hostname via DHCP or other means if "localhost"
is already configured as a static hostname, as the transient
hostname will be ignored by hostnamed if a static hostname
has already been set.
2025-03-11 09:26:20 +00:00
Jan Vaclav
21c46d6e5f libnm-glib-aux: add nm_utils_is_not_empty_hostname
Checks whether the hostname is not empty or "(none)".
2025-03-11 09:26:20 +00:00
Beniamino Galvani
6292b0c9dc version: add version 1.54 macros 2025-03-06 18:45:23 +01:00
Íñigo Huguet
dc51ffe857 NEWS: update the 1.52 to match nm-1-52 2025-03-04 08:49:18 +01:00
Íñigo Huguet
a60ca31fd9 spec: specify paths to *-initrd.service files from the buildroot
Fixes: 91e36ea214 ('spec: don't install *-initrd.services')
2025-03-04 07:19:56 +01:00
Íñigo Huguet
91e36ea214 spec: don't install *-initrd.services
They cannot be used yet as Dracut need changes. They are not really
tested, neither, so better not to install them as they might cause
confusion about their purpose.
2025-03-03 15:42:36 +01:00
Íñigo Huguet
bf1a8ce5d4 release: bump version to 1.53.1 (development) 2025-02-28 15:45:29 +01:00
Íñigo Huguet
995a28fa1c release: bump version to 1.52.0 2025-02-28 14:55:33 +01:00
Íñigo Huguet
f275a4d08a contrib/build: ignore missing signingkey in git config
Fixes: 64f8ec6099 ('rpm/build*.sh: trap failures')
(cherry picked from commit 90c403f4ef)
2025-02-28 14:34:48 +01:00
Íñigo Huguet
90c403f4ef contrib/build: ignore missing signingkey in git config
Fixes: 64f8ec6099 ('rpm/build*.sh: trap failures')
2025-02-28 14:33:18 +01:00
Íñigo Huguet
1e89a05a20 CI: update images 2025-02-28 14:21:35 +01:00
Lubomir Rintel
837cf2e6e4 gitlab/fedora-install: use yum install --allowerasing
This allows us to drag in packages that replace something in the base
image. Notably, this fixes installing pppd on Fedora 42 that requires
systemd (whereas the image has conflicting systemd-standalone-sysusers).

(cherry picked from commit 979717df4e)
2025-02-28 14:21:19 +01:00
Lubomir Rintel
726e0a5aee fedora/REQUIRED_PACKAGES: remove very old optional package names
Attempting to install these takes time and they are no longer there
since ancient times. CentOS 9 and later are fine.

(cherry picked from commit 39efc8a394)
2025-02-28 14:21:19 +01:00
Lubomir Rintel
3982c5a04d Revert "fedora/REQUIRED_PACKAGES: speed up optional packages installation"
dnf --skip-unavailable not available on CentOS 9.

This reverts commit 5409d4f5cd.

(cherry picked from commit e2aa19a06c)
2025-02-28 14:21:19 +01:00
Lubomir Rintel
57f9d99b8a contrib: drop old gtkdoc patch
This has been integrated 6 years ago.

(cherry picked from commit 054962aeea)
2025-02-28 14:21:19 +01:00
Lubomir Rintel
81f272babe contrib/build: ignore initial failure to set $SOURCE
More fallout from set -e patch, encountered during a release.

Fixes: 64f8ec6099 ('rpm/build*.sh: trap failures')
(cherry picked from commit aea231f489)
2025-02-28 09:43:38 +01:00
Íñigo Huguet
815b3f5885 NEWS: update for 1.52 release 2025-02-28 09:40:55 +01:00
Lubomir Rintel
a0779a9339 keyfile: don't crash on failure to write
The log statement ended up using wrong (always NULL) connection to get
ID from. Fix.

Resolves: https://issues.redhat.com/browse/RHEL-77157
(cherry picked from commit a7cf9d399f)
2025-02-28 09:18:26 +01:00
Lubomir Rintel
5c16bb1d26 Reapply "client/test: add test for VLANs on OCI"
This reverts commit a852b79cf5f783dccff738152d238f93bb956cc8.

(cherry picked from commit 70872cbb38)
2025-02-26 13:30:08 +01:00
Lubomir Rintel
68d7e17737 Reapply "cloud-setup: create VLANs for multiple VNICs on OCI"
The idea is to create a pair of VLAN and MACVLAN with AddAndActivate if
they are not present, and otherwise follow the ordinary (GetApplied &
Reapply) procedure if the devices are already present.

This reverts commit 87d7ccc5807011fe74aa653677f142c31b54329f.

(cherry picked from commit 7eee669217)
2025-02-26 13:30:04 +01:00
Lubomir Rintel
369db80086 Reapply "cloud-setup: lookup device by MAC + type instead of just MAC"
This will be useful for updating configuration of Vlans and MacVlans,
some of having same MAC addresses as devices of other type.

This reverts commit cee0515f1399fe05f650adec147435aa0a933d78.

(cherry picked from commit 6cedd594b6)
2025-02-26 13:30:00 +01:00
Lubomir Rintel
fd6f4f86e4 Reapply "cloud-setup: parse OCI metadata related to VLAN config"
Baremetal instances in Oracle Cloud require special VLAN config. Parse
the metadata related to it.

This reverts commit 5eefd2d59c.

(cherry picked from commit 5c3efeef15)
2025-02-26 13:29:57 +01:00
Lubomir Rintel
b7114d00ed Reapply "manager: create virtual devices on AddAndActivate()"
This reverts commit ccae5dc0e29be145ce4f7ea193c29f2234097f2e.

(cherry picked from commit 11045cfa00)
2025-02-26 13:29:53 +01:00
Lubomir Rintel
4a1c51317e manager: make system_create_virtual_device() return a GError
This is done so that AddAndActivate() will return sensible errors in a
future patch that makes it support creating virtual devices.

In effect, all errors are logged in one place, therefore the log levels
are different. I don't think we're losing anything of value by being
a little less verbose here.

(cherry picked from commit 45d82f720c)
2025-02-26 13:29:49 +01:00
Lubomir Rintel
4a8e672506 merge: branch 'lr/sw-device-cleanup'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2126
2025-02-26 11:06:13 +01:00