Compare commits

..

145 Commits
f29 ... rawhide

Author SHA1 Message Date
Beniamino Galvani e481288c3e Update to 1.43.6 release (development) 2023-04-20 11:58:54 +02:00
Beniamino Galvani 229955ef0b Sync the spec file with upstream 2023-04-20 11:58:54 +02:00
Adam Williamson ef05be83e2 Fix ppp version discovery 2023-04-18 18:02:18 -07:00
Kevin Fenzi 948f57c7bf Add upstream patch for ppp-2.5.0
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-04-18 16:24:30 -07:00
Adam Williamson c609302693 Rebuild for ppp 2.5.0 2023-04-18 14:51:11 -07:00
Lubomir Rintel 86df8c88db Actually bump the version 2023-04-05 14:39:21 +02:00
Lubomir Rintel d4cbc3d2d2 Update to 1.43.5 release (development) 2023-04-05 13:54:59 +02:00
Thomas Haller 3562d94a12
Update to 1.43.4 release (development) 2023-03-22 20:43:13 +01:00
Lubomir Rintel 0a4365e5af Remove an old patch 2023-03-08 18:36:35 +01:00
Lubomir Rintel 589a1c573c Update to an early 1.44 snapshot 2023-03-08 16:11:50 +01:00
Thomas Haller 3049c2df9a
libnm/docs: fix gtk-doc generation for settings 2023-02-10 17:38:30 +01:00
Thomas Haller 9aa462c3d5
Upgrade to 1.42.0 release 2023-02-10 10:13:48 +01:00
Yaakov Selkowitz 268730fdde Fix flatpak build 2023-01-31 17:30:10 +00:00
Lubomir Rintel d11b67721a Update to 1.41.91 release (release candidate) 2023-01-26 10:37:02 +01:00
Fernando Fernandez Mancera 4a5d12e071 Upgrade to 1.42-rc1 (1.41.90) (release candidate) 2023-01-20 12:49:37 +01:00
Fedora Release Engineering 2cb10e4348 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 19:55:54 +00:00
Beniamino Galvani 97dcdaaf53 Update to 1.41.8 release (development) 2023-01-16 17:13:12 +01:00
Lubomir Rintel 9e45edd668 Update to 1.41.7 release (development) 2022-12-15 17:11:05 +01:00
Thomas Haller 0f59c7739b
Update to 1.41.6 release (development) 2022-11-30 18:39:05 +01:00
Thomas Haller 8932641c49
Upgrade to 1.41.5 development snapshot 2022-11-18 08:31:29 +01:00
Thomas Haller fe89fe48df
fix generating stable UUIDs for keyfile (gitlab#1130) 2022-11-03 09:30:01 +01:00
Wen Liang 971a5b8ee2 Update to 1.41.4 release (development) 2022-11-02 16:43:10 -04:00
Beniamino Galvani c5811ea797 Update to 1.41.3 release (development) 2022-10-18 12:11:48 +02:00
Thomas Haller 3177397698
Upgrade to 1.40.0 release 2022-08-26 19:41:20 +02:00
Ana Cabral eb5fbe00af Upgrade to 1.40-rc1 (1.39.90) (release candidate) 2022-08-16 18:51:15 -03:00
Beniamino Galvani e27d4677d1 Update to 1.39.11 release (development) 2022-07-28 10:43:10 +02:00
Fedora Release Engineering 460034d95b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 18:49:28 +00:00
Vojtech Bubela 022b5635e4 Update to 1.39.10 release (development) 2022-07-14 15:26:50 +02:00
Lubomir Rintel e83c290128 Update to 1.39.8 release (development) 2022-06-30 16:51:10 +02:00
Ana Cabral e41df17cd6 Bump release number 2022-05-30 14:03:39 +02:00
Ana Cabral 136952f729 rpm: include an informational file in ifcfg files directory 2022-05-30 10:28:35 +02:00
Thomas Haller 53393c4b58
Upgrade to 1.38.0 release 2022-05-13 11:32:19 +02:00
Thomas Haller a745e634cf
Upgrade to 1.38-rc3 (1.37.92) (release candidate) 2022-05-04 15:10:17 +02:00
Thomas Haller 42ff700916
Upgrade to 1.38-rc2 (1.37.91) (release candidate) 2022-04-14 12:48:41 +02:00
Ana Cabral 49cb2c5734 Update to 1.38.0-rc1 (1.37.90) (release candidate) 2022-04-07 11:33:46 +02:00
Lubomir Rintel 7cf2ae3afa Upgrade to 1.37.3 release (development) 2022-03-24 22:06:17 +01:00
Beniamino Galvani f403f8efc4 Update to 1.36.4 release 2022-03-22 21:50:12 +01:00
Michael Scherer 50b8516937 Fix RHBZ 2066849 2022-03-22 16:36:30 +01:00
Beniamino Galvani 8bcd242d34 Update to 1.36.2 release 2022-03-07 12:03:57 +01:00
Lubomir Rintel 9dc614162a Update to 1.36.0 release 2022-02-24 16:59:47 +01:00
Lubomir Rintel 29841c7d57 Update to 1.36-rc3 (1.35.92) (release candidate) 2022-02-19 14:11:54 +01:00
Lubomir Rintel 0b5c393efe Fix build 2022-02-10 15:42:33 +01:00
Lubomir Rintel c3b4682a03 Update to 1.36-rc2 (1.35.91) (release candidate) 2022-02-10 15:21:20 +01:00
Lubomir Rintel ca43676e5e Update to 1.36-rc1 (1.35.90) (release candidate) 2022-02-04 18:39:45 +01:00
Thomas Haller 993bfd4a39
update to an early 1.36 snapshot (1.35.7) 2022-01-28 15:27:31 +01:00
Thomas Haller 73ea8c0c0f
Revert rework of DHCP client that causes crash
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1066#note_1233210
2022-01-27 01:00:50 +01:00
Thomas Haller bf5f80eb09
fix version 2022-01-26 23:13:20 +01:00
Thomas Haller 2daaa0dfe3
update to an early 1.36 snapshot (1.35.6) 2022-01-26 23:06:06 +01:00
Fedora Release Engineering 8c1c57be16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 19:30:29 +00:00
Thomas Haller 88df317665
update to an early 1.36 snapshot (1.35.4) 2022-01-13 13:44:19 +01:00
Wen Liang 341972ce75 update to an early 1.36 snapshot (1.35.3) 2021-12-15 20:06:10 -05:00
Wen Liang 93fb0bf10a update to an early 1.36 snapshot (1.35.2) 2021-12-02 12:37:26 -05:00
Beniamino Galvani f839faf6ba update to an early 1.36 snapshot (1.35.1) 2021-11-19 18:04:21 +01:00
Beniamino Galvani 0130e35f80 core: better handle sd-resolved errors when resolving hostnames
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/833
2021-10-29 17:00:59 +02:00
Beniamino Galvani 8594b59280 Update to 1.32.12 release 2021-09-22 12:01:58 +02:00
Thomas Haller 2c2c15fe51
platform: fix capturing IPv4 addresses from platform for assuming after restart 2021-08-19 18:58:38 +02:00
Wen Liang 0bf341083e
Update to 1.32.10 release
Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2021-08-19 13:27:49 +02:00
Fernando Fernandez Mancera 4a6b3fc1cc Update to 1.32.8 release
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
2021-08-10 20:19:24 +02:00
Thomas Haller 373fa8cd0f
update to 1.32.6 release 2021-07-28 18:29:34 +02:00
Thomas Haller 76947cefc7
changelog: whitespace fixes 2021-07-27 10:46:25 +02:00
Fedora Release Engineering aa51858262 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 15:55:23 +00:00
Fedora Release Engineering 4f80c65cb1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 11:00:51 +00:00
Thomas Haller 2be3b50b5c
update to 1.32.4 release 2021-07-20 17:30:06 +02:00
Thomas Haller 74a5d6efed
update to 1.32.0 release 2021-06-16 22:46:43 +02:00
Thomas Haller c6fd1f3181
update to 1.32-rc1 (1.31.90) (release candidate) 2021-06-04 18:24:17 +02:00
Beniamino Galvani c649704e87 update to an early 1.32 snapshot (1.31.4) 2021-05-05 21:33:52 +02:00
Beniamino Galvani 0c125af8fe update to an early 1.32 snapshot (1.31.3) 2021-04-23 14:22:09 +02:00
Beniamino Galvani c83d942eaf update sources 2021-04-12 15:49:12 +02:00
Beniamino Galvani b069eff77c update to an early 1.32 snapshot (1.31.2) 2021-03-25 14:01:44 +01:00
Beniamino Galvani 58024e4031 update to 1.30.2 release 2021-03-12 17:11:18 +01:00
Thomas Haller 923d3d1d99
update to 1.30.0 release 2021-02-18 20:25:05 +01:00
Thomas Haller dbfd35a1ec
update to 1.30-rc1 (1.29.90-dev) snapshot 2021-02-11 17:13:31 +01:00
Thomas Haller 598b6a70ba
update to 1.29.11-dev snapshot 2021-02-09 09:21:49 +01:00
Fedora Release Engineering 6db3c9359d - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-25 22:32:05 +00:00
Thomas Haller d08e71d9e7
update to 1.29.9-dev snapshot 2021-01-19 20:12:24 +01:00
Thomas Haller a6813af4b6
resync spec file with upstream
- extend "Requires:" to work with Centos8 and older. We maintain
  upstream a preferred spec file that should work with all distros
  that we support.

- fix to not package manual page for "nm-cloud-setup" in NetworkManager
  package.
2021-01-18 13:02:01 +01:00
Peter Robinson d106900593
Require wireless-regdb for wifi support so WiFi region is set
https://src.fedoraproject.org/rpms/NetworkManager/pull-request/7
2021-01-18 10:27:43 +01:00
Tom Stellard 8f93680134
Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro

https://src.fedoraproject.org/rpms/NetworkManager/pull-request/4
2021-01-15 17:16:06 +01:00
Thomas Haller 7a48b33607
update to 1.29.8-dev snapshot 2021-01-14 22:42:22 +01:00
Jonathan Lebon 3240dc5220
Don't trigger udev if socket doesn't exist
On rpm-ostree systems, we don't want scriptlets to affect the running
system because a major part of the value is "background updates".
Scriptlets are run in a containerized environment where e.g. udev is not
available.

Add a check for the udev socket before triggering it to handle this.
This also helps the container use case.

This doesn't break rpm-ostree strictly, because it uses `|| :`, but it
still spams error messages during the compose. I kept the `|| :` to be
safe, but it's likely fine to remove them now.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1352154
See also: https://src.fedoraproject.org/rpms/udisks2/pull-request/3
See also: https://github.com/coreos/fedora-coreos-tracker/issues/703

https://src.fedoraproject.org/rpms/NetworkManager/pull-request/6
2021-01-14 22:32:41 +01:00
Tom Stellard 85ab70ffcd Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 05:44:09 +00:00
Mohan Boddu 1130677af4 Rebuild for ppp-2.4.9-1
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2021-01-06 11:21:44 -05:00
Thomas Haller a18e85809f
update to 1.28.0 2020-12-06 16:29:45 +01:00
Beniamino Galvani 1d764a957f update to 1.28-rc2 (1.27.91) 2020-10-20 18:55:54 +02:00
Thomas Haller 36c0fdc256
update to 1.28-rc1 (1.27.90) 2020-10-06 10:13:47 +02:00
Thomas Haller 103896827d
reword changelog and re-generate patch
- patches should be in `git format-patch` format and have a
  "cherry picked from" line that refers to the respective upstream
  patch. This way the patch contains meta data like the commit
  message and a reference to the upstream commit ID.

- the change log referred to the commit ID from master branch, when
  it should refer to the batch from nm-1-26 branch (which is upstream
  for 1.26.2, which is currently packaged).

- the change log seem line seems too long. Reword. Also, the main
  purpose of the change is to fix the build (not to backport a patch).
2020-09-21 14:55:20 +02:00
Yaroslav Fedevych 46a78c9b14
Backport a XML generation fix so the package builds correctly
https://src.fedoraproject.org/rpms/NetworkManager/pull-request/5
2020-09-21 14:51:11 +02:00
Thomas Haller a32a9e28b5
adjust version number 2020-08-19 11:07:30 +02:00
Thomas Haller d6f04ca2cf
update to 1.26.2 2020-08-19 09:49:31 +02:00
Fedora Release Engineering 8de97ab4ed - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 10:29:45 +00:00
Thomas Haller acbaadae23
prefer keyfile settings plugin from Fedora 33 and newer
https://mail.gnome.org/archives/networkmanager-list/2020-May/msg00002.html
https://fedoraproject.org/wiki/Changes/NetworkManager_keyfile_instead_of_ifcfg_rh
https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/thread/OLOU27DAON2TYGTAVZ35GZE2BEIN42U3/
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OLOU27DAON2TYGTAVZ35GZE2BEIN42U3/
https://pagure.io/fesco/issue/2432

https://bugzilla.redhat.com/show_bug.cgi?id=1857391
2020-07-16 12:28:39 +02:00
Thomas Haller f6133686c9
Update to 1.26.0 2020-07-13 21:22:34 +02:00
Thomas Haller a06b38bcbe
update to 1.26-rc1 (1.25.90) 2020-06-15 19:33:09 +02:00
Thomas Haller 28e6474b9c
Update to 1.24.2 release 2020-05-29 17:28:37 +02:00
Thomas Haller bea355fedb
Update to 1.24.0 2020-05-08 14:48:12 +02:00
Thomas Haller b190302070
Update to 1.24-rc2 (1.23.91) 2020-05-02 23:02:28 +02:00
Thomas Haller c2f5bb45e9 Update to 1.24-rc1 (1.23.90) 2020-04-11 20:30:16 +02:00
Björn Esser 660f94e1b0
Bump release 2020-04-02 13:33:12 +02:00
Björn Esser 5eadbbce7e
Fix string quoting for rpm >= 4.16 2020-04-02 13:09:18 +02:00
Thomas Haller f2a09782d5 fix date in changelog 2020-03-12 16:17:24 +01:00
Thomas Haller 505f80e176 Update to 1.22.10 2020-03-12 16:11:58 +01:00
Adam Williamson bbc5f98e67 Rebuild for new ppp 2020-02-22 09:16:42 -08:00
Antonio Cardace e3ace6b76e Update to 1.22.8 2020-02-18 17:23:28 +01:00
Beniamino Galvani c4c77b9ac1 Fix build with GCC 10 2020-02-03 16:15:23 +01:00
Beniamino Galvani 7ff623281c Update to 1.22.6 2020-02-03 12:04:35 +01:00
Fedora Release Engineering 8d16f6e4dc - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 09:33:39 +00:00
Beniamino Galvani 3722052671 Update to 1.22.4 2020-01-10 10:36:27 +01:00
Thomas Haller b3a325009e Update to 1.22.2 2019-12-25 20:18:47 +01:00
Thomas Haller e4027e3b1a Update to 1.22.0 2019-12-17 11:27:16 +01:00
Thomas Haller ebb5317dc1 Update to 1.21.90 (1.22-rc1) (fix spec file) 2019-11-29 18:56:32 +01:00
Thomas Haller 110dba26d8 Update to 1.21.90 (1.22-rc1) 2019-11-29 18:38:29 +01:00
Lubomir Rintel 001af63c4e Update to an early 1.22.0 snapshot 2019-11-03 13:04:48 +01:00
Thomas Haller ac21445f51 Update to 1.20.4 release 2019-09-30 09:11:12 +02:00
Lubomir Rintel 81023c35a5 Bring back the boolean dep for the wireless daemon 2019-09-07 14:58:28 +02:00
Lubomir Rintel 5ef97724b1 Bring back the boolean dep for the wireless daemon
Hopefully this will allow installing iwd while still preferring
wpa_supplicant.

Suggested-by: Rex Dieter <rdieter@gmail.com>
Suggested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>>
2019-09-06 14:25:32 +02:00
Lubomir Rintel 48c1f98497 Update to 1.20.2 release
- Bring back the hard wpa_supplicant dependency (rh #1743585)
2019-09-05 14:57:36 +02:00
Lubomir Rintel f3de64e64d wifi: detect FT support per interface and avoid enabling it 2019-08-23 08:58:55 +02:00
Lubomir Rintel 231f1105ed contrib/rpm: install our dispatcher scripts into /usr/lib/NetworkManager
That's where they always should have been.
2019-08-23 08:58:40 +02:00
Lubomir Rintel 84788c4cfd Enable iwd support 2019-08-15 23:10:41 +02:00
Thomas Haller da0c931f46 Update to 1.20.0 release 2019-08-06 14:00:42 +02:00
Thomas Haller 2875b62a86 Update to 1.20-rc1 upstream release candidate 2019-07-29 21:53:55 +02:00
Fedora Release Engineering 885bee8178 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 15:59:39 +00:00
Lubomir Rintel 0dda1bed32 settings: fix a reversed conditional in have_connection_for_device() (rh #1727411) 2019-07-08 18:11:38 +02:00
Lubomir Rintel 184dfaf298 Update the 1.20.0 snapshot
- initrd: skip ethernet hwtype in BOOTIF (rh #1726240)
- initrd: allow specifying the net mask in form of a prefix (rh #1725872)
2019-07-03 09:48:56 +02:00
Lubomir Rintel 040ae392e7 Re-enable the initrd generator 2019-06-04 16:09:06 +02:00
Lubomir Rintel 6cfba5306d Update the 1.20.0 snapshot 2019-06-04 16:07:58 +02:00
Lubomir Rintel fd6f6acab8 Update to an early 1.20.0 snapshot 2019-05-03 11:49:05 +02:00
Lubomir Rintel a2e07e734d Sync SPEC with NM git 2019-04-26 18:06:42 +02:00
Lubomir Rintel ed4473292d Update to 1.18.0 release 2019-04-26 17:54:47 +02:00
Thomas Haller 746be5eb7f Update to 1.16.0 release 2019-03-15 16:39:03 +01:00
Thomas Haller b19e5ac269 Fix compilation error on rawhide for gettid() compat implementation 2019-03-11 19:16:32 +01:00
Thomas Haller 6cdec870c5 Update to 1.15.91 release (1.16-rc2) 2019-03-11 17:23:38 +01:00
Thomas Haller 91b043a18a Revert "Remove obsolete Group tag"
We maintain an upstream specfile of NetworkManager [1] that shall be suitable
for all Fedora/RHEL releases. As such, there are still releases for
which we want to keep the group tag.

Revert the patch, so that the difference between Fedora's and upstream's
specfile is minimized.

[1] https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.spec?id=96be30cbcc59494d45e3b2f3bd605e00050674ed

This reverts commit 62adcbc888.
2019-03-11 17:19:37 +01:00
Thomas Haller 2a9113a2f9 Update to 1.15.90 release (1.16-rc1) 2019-02-23 10:57:15 +01:00
Igor Gnatenko 3fcb0e3703 Rebuild for readline 8.0 2019-02-17 09:30:52 +01:00
Kalev Lember f6c878a04a Update BRs for vala packaging changes 2019-02-04 12:24:46 +01:00
Fedora Release Engineering bcdcd326ad - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 11:42:26 +00:00
Igor Gnatenko 62adcbc888 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:18 +01:00
Igor Gnatenko 5c6421bc88
Remove obsolete ldconfig scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-22 18:40:29 +01:00
Thomas Haller 7d883dd95e dhcp: fix out-of-bounds heap write for DHCPv6 with internal plugin (CVE-2018-15688) 2018-10-29 14:43:36 +01:00
Lubomir Rintel dd82c1e921 Drop unnecessary patches 2018-10-24 11:43:44 +02:00
Lubomir Rintel 7d3054a9e3 Update to 1.14.4 release
Temporarily disable the initrd generator (rh #1641832)
2018-10-24 11:36:00 +02:00
Thomas Haller 67ec5442e9 device: fix crash in nm_device_generate_connection() (1:1.14.2-2)
Also "dhcp: dhclient: fix memory leak".
2018-10-23 12:14:03 +02:00
Lubomir Rintel 6fd65f9fd5 Update to 1.14.2 release 2018-10-19 16:58:26 +02:00
Thomas Haller 92d36d7fb0 Update to 1.14.0 release 2018-09-18 15:15:56 +02:00
15 changed files with 1121 additions and 863 deletions

85
.gitignore vendored
View File

@ -348,5 +348,86 @@ network-manager-applet-0.8.1.tar.bz2
/NetworkManager-1.11.90.tar.xz
/NetworkManager-1.12.0.tar.xz
/NetworkManager-1.12.2.tar.xz
/NetworkManager-1.12.4.tar.xz
/NetworkManager-1.12.6.tar.xz
/NetworkManager-1.14.0.tar.xz
/NetworkManager-1.14.2.tar.xz
/NetworkManager-1.14.4.tar.xz
/NetworkManager-1.15.90.tar.xz
/NetworkManager-1.15.91.tar.xz
/NetworkManager-1.16.0.tar.xz
/NetworkManager-1.18.0.tar.xz
/NetworkManager-1.19.2.tar.xz
/NetworkManager-1.19.3.tar.xz
/NetworkManager-1.19.5.tar.xz
/NetworkManager-1.19.90.tar.xz
/NetworkManager-1.20.0.tar.xz
/NetworkManager-1.20.2.tar.xz
/NetworkManager-1.20.4.tar.xz
/NetworkManager-1.21.3.tar.xz
/NetworkManager-1.21.90.tar.xz
/NetworkManager-1.22.0.tar.xz
/NetworkManager-1.22.2.tar.xz
/NetworkManager-1.22.4.tar.xz
/NetworkManager-1.22.6.tar.xz
/NetworkManager-1.22.8.tar.xz
/NetworkManager-1.22.10.tar.xz
/NetworkManager-1.23.90.tar.xz
/NetworkManager-1.23.91.tar.xz
/NetworkManager-1.24.0.tar.xz
/NetworkManager-1.24.2.tar.xz
/NetworkManager-1.25.90.tar.xz
/NetworkManager-1.26.0.tar.xz
/NetworkManager-1.26.2.tar.xz
/NetworkManager-1.27.90.tar.xz
/NetworkManager-1.27.91.tar.xz
/NetworkManager-1.28.0.tar.xz
/NetworkManager-1.29.8.tar.xz
/NetworkManager-1.29.9.tar.xz
/NetworkManager-1.29.11.tar.xz
/NetworkManager-1.29.90.tar.xz
/NetworkManager-1.30.0.tar.xz
/NetworkManager-1.30.2.tar.xz
/NetworkManager-1.31.2.tar.xz
/NetworkManager-1.31.3.tar.xz
/NetworkManager-1.31.4.tar.xz
/NetworkManager-1.31.90.tar.xz
/NetworkManager-1.32.0.tar.xz
/NetworkManager-1.32.4.tar.xz
/NetworkManager-1.32.6.tar.xz
/NetworkManager-1.32.8.tar.xz
/NetworkManager-1.32.10.tar.xz
/NetworkManager-1.32.12.tar.xz
/NetworkManager-1.35.1.tar.xz
/NetworkManager-1.35.2.tar.xz
/NetworkManager-1.35.3.tar.xz
/NetworkManager-1.35.4.tar.xz
/NetworkManager-1.35.6.tar.xz
/NetworkManager-1.35.7.tar.xz
/NetworkManager-1.35.90.tar.xz
/NetworkManager-1.35.91.tar.xz
/NetworkManager-1.35.92.tar.xz
/NetworkManager-1.36.0.tar.xz
/NetworkManager-1.36.2.tar.xz
/NetworkManager-1.36.4.tar.xz
/NetworkManager-1.37.3.tar.xz
/NetworkManager-1.37.90.tar.xz
/NetworkManager-1.37.91.tar.xz
/NetworkManager-1.37.92.tar.xz
/NetworkManager-1.38.0.tar.xz
/NetworkManager-1.39.8.tar.xz
/NetworkManager-1.39.10.tar.xz
/NetworkManager-1.39.11.tar.xz
/NetworkManager-1.39.90.tar.xz
/NetworkManager-1.40.0.tar.xz
/NetworkManager-1.41.3.tar.xz
/NetworkManager-1.41.4.tar.xz
/NetworkManager-1.41.5.tar.xz
/NetworkManager-1.41.6.tar.xz
/NetworkManager-1.41.7.tar.xz
/NetworkManager-1.41.8.tar.xz
/NetworkManager-1.41.90.tar.xz
/NetworkManager-1.41.91.tar.xz
/NetworkManager-1.42.0.tar.xz
/NetworkManager-1.43.3.tar.xz
/NetworkManager-1.43.4.tar.xz
/NetworkManager-1.43.5.tar.xz
/NetworkManager-1.43.6.tar.xz

View File

@ -1,29 +0,0 @@
From b259adf62da5e13112d4abe845c2a2a9a6273095 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Wed, 14 Nov 2018 16:36:33 +0100
Subject: [PATCH 1/3] device: fix wrong connection default property
Fixes: 96cabbcbb8f484f74fe69305b425b5109608e9d7
(cherry picked from commit 218d7687a06e81cbb85849f070d133814a71190e)
(cherry picked from commit 70cbda40cb8e11266db7b89cf408024f5d336527)
(cherry picked from commit a3546bb28d437679df0d9bfb5f6747297fe284ca)
---
src/devices/nm-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index f0d747e5c..76c80bd3d 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -14734,7 +14734,7 @@ _get_generate_mac_address_mask_setting (NMDevice *self, NMConnection *connection
}
a = nm_config_data_get_connection_default (NM_CONFIG_GET_DATA,
- is_wifi ? "wifi.generate-mac-address-mask" : "ethernet.generate-mac-mac-address-mask",
+ is_wifi ? "wifi.generate-mac-address-mask" : "ethernet.generate-mac-address-mask",
self);
if (!a)
return NULL;
--
2.17.1

View File

@ -1,52 +0,0 @@
From 4c19b09a356a14a1042d962e3d9e856695479c33 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Wed, 14 Nov 2018 16:35:53 +0100
Subject: [PATCH 2/3] man: add missing connection defaults
(cherry picked from commit a482b27593a757ea534d9a9989d7e409b8b2d4ed)
(cherry picked from commit 9135603c93db12adbd9a1982ab45bc84d2078780)
(cherry picked from commit f0890cc83fb5d0ce9c7d4800ab2818666c70dd16)
---
man/NetworkManager.conf.xml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/man/NetworkManager.conf.xml b/man/NetworkManager.conf.xml
index 17bc42f34..f2addce14 100644
--- a/man/NetworkManager.conf.xml
+++ b/man/NetworkManager.conf.xml
@@ -642,6 +642,12 @@ ipv6.ip6-privacy=0
A default value is only consulted if the corresponding per-connection value
explicitly allows for that.
<variablelist>
+ <varlistentry>
+ <term><varname>802-1x.auth-timeout</varname></term>
+ </varlistentry>
+ <varlistentry>
+ <term><varname>cdma.mtu</varname></term>
+ </varlistentry>
<varlistentry>
<term><varname>connection.auth-retries</varname></term>
<listitem><para>If left unspecified, the default value is 3 tries before failing the connection.
@@ -673,6 +679,9 @@ ipv6.ip6-privacy=0
<varlistentry>
<term><varname>ethernet.wake-on-lan</varname></term>
</varlistentry>
+ <varlistentry>
+ <term><varname>gsm.mtu</varname></term>
+ </varlistentry>
<varlistentry>
<term><varname>infiniband.mtu</varname></term>
<listitem><para>If configured explicitly to 0, the MTU is not reconfigured during device activation unless it is required due to IPv6 constraints. If left unspecified, a DHCP/IPv6 SLAAC provided value is used or the MTU is left unspecified on activation.</para></listitem>
@@ -763,6 +772,9 @@ ipv6.ip6-privacy=0
<listitem><para>If left unspecified, the default value
"<literal>optional</literal>" will be used.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>wifi.wake-on-wlan</varname></term>
+ </varlistentry>
</variablelist>
</para>
</refsect2>
--
2.17.1

View File

@ -1,52 +0,0 @@
From 77c31234bcd84faad81d0e33c1662c834a4f616d Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Thu, 6 Dec 2018 16:56:47 +0100
Subject: [PATCH 3/3] device: always take device down when changing MAC for
wifi devices
If the device is not taken down wpa_supplicant does not detect that
the MAC changed and the authentication can fail due to wrong key
derivation.
Fixes: e206a3473249be4c92c5d71214a33e90db301127
https://bugzilla.redhat.com/show_bug.cgi?id=1656157
(cherry picked from commit 29e8f6d5a17c3dbfd11655338cd0ffc61e1fc91b)
(cherry picked from commit b2686110ef9cfcd87470d65872abf4adb9dab37c)
(cherry picked from commit 0624814af17fb66826fda0e901c3d73a292ff37e)
---
src/devices/nm-device.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 76c80bd3d..3df5b28dc 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -14775,7 +14775,7 @@ _hw_addr_set (NMDevice *self,
NMPlatformError plerr;
guint8 addr_bytes[NM_UTILS_HWADDR_LEN_MAX];
gsize addr_len;
- gboolean was_taken_down;
+ gboolean was_taken_down = FALSE;
gboolean retry_down;
nm_assert (NM_IS_DEVICE (self));
@@ -14799,7 +14799,14 @@ _hw_addr_set (NMDevice *self,
_LOGT (LOGD_DEVICE, "set-hw-addr: setting MAC address to '%s' (%s, %s)...", addr, operation, detail);
- was_taken_down = FALSE;
+ if (nm_device_get_device_type (self) == NM_DEVICE_TYPE_WIFI) {
+ /* Always take the device down for Wi-Fi because
+ * wpa_supplicant needs it to properly detect the MAC
+ * change. */
+ retry_down = FALSE;
+ was_taken_down = TRUE;
+ nm_device_take_down (self, FALSE);
+ }
again:
plerr = nm_platform_link_set_address (nm_device_get_platform (self), nm_device_get_ip_ifindex (self), addr_bytes, addr_len);
--
2.17.1

View File

@ -1,186 +0,0 @@
From 3ce03f15d9c51f07f2811d0a387488d5d7a4ef3b Mon Sep 17 00:00:00 2001
From: Thomas Haller <thaller@redhat.com>
Date: Mon, 3 Dec 2018 10:27:06 +0100
Subject: [PATCH 1/2] libnm: add nm_connectivity_state_cmp() helper
(cherry picked from commit 487ee687d5bba82ee1054d74961afe122260811f)
(cherry picked from commit 51b7b10d3dc81d2837aba14ebf0e92f6ccd2db11)
(cherry picked from commit c155f776fd38eb8acfff3ac03d2e648fbb92930b)
---
src/nm-connectivity.h | 15 +++++++++++
src/tests/test-general.c | 58 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/src/nm-connectivity.h b/src/nm-connectivity.h
index 178f27ad9..99333cede 100644
--- a/src/nm-connectivity.h
+++ b/src/nm-connectivity.h
@@ -24,6 +24,21 @@
#include "nm-dbus-interface.h"
+/*****************************************************************************/
+
+static inline int
+nm_connectivity_state_cmp (NMConnectivityState a, NMConnectivityState b)
+{
+ if (a == NM_CONNECTIVITY_PORTAL && b == NM_CONNECTIVITY_LIMITED)
+ return 1;
+ if (b == NM_CONNECTIVITY_PORTAL && a == NM_CONNECTIVITY_LIMITED)
+ return -1;
+ NM_CMP_DIRECT (a, b);
+ return 0;
+}
+
+/*****************************************************************************/
+
#define NM_CONNECTIVITY_ERROR ((NMConnectivityState) -1)
#define NM_CONNECTIVITY_FAKE ((NMConnectivityState) -2)
#define NM_CONNECTIVITY_CANCELLED ((NMConnectivityState) -3)
diff --git a/src/tests/test-general.c b/src/tests/test-general.c
index 4db05ac84..56e18571c 100644
--- a/src/tests/test-general.c
+++ b/src/tests/test-general.c
@@ -29,6 +29,8 @@
#include "NetworkManagerUtils.h"
#include "nm-core-internal.h"
+#include "nm-connectivity.h"
+
#include "nm-test-utils-core.h"
/* Reference implementation for nm_utils_ip6_address_clear_host_address.
@@ -1733,6 +1735,60 @@ test_nm_utils_exp10 (void)
/*****************************************************************************/
+static void
+test_connectivity_state_cmp (void)
+{
+ NMConnectivityState a;
+
+#define _cmp(a, b, cmp) \
+ G_STMT_START { \
+ const NMConnectivityState _a = (a); \
+ const NMConnectivityState _b = (b); \
+ const int _cmp = (cmp); \
+ \
+ g_assert (NM_IN_SET (_cmp, -1, 0, 1)); \
+ g_assert_cmpint (nm_connectivity_state_cmp (_a, _b), ==, _cmp); \
+ g_assert_cmpint (nm_connectivity_state_cmp (_b, _a), ==, -_cmp); \
+ } G_STMT_END
+
+ for (a = NM_CONNECTIVITY_UNKNOWN; a <= NM_CONNECTIVITY_FULL; a++)
+ _cmp (a, a, 0);
+
+ _cmp (NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_UNKNOWN, 0);
+ _cmp (NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_NONE, -1);
+ _cmp (NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_LIMITED, -1);
+ _cmp (NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_PORTAL, -1);
+ _cmp (NM_CONNECTIVITY_UNKNOWN, NM_CONNECTIVITY_FULL, -1);
+
+ _cmp (NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_UNKNOWN, 1);
+ _cmp (NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_NONE, 0);
+ _cmp (NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_LIMITED, -1);
+ _cmp (NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_PORTAL, -1);
+ _cmp (NM_CONNECTIVITY_NONE, NM_CONNECTIVITY_FULL, -1);
+
+ _cmp (NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_UNKNOWN, 1);
+ _cmp (NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_NONE, 1);
+ _cmp (NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_LIMITED, 0);
+ _cmp (NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_PORTAL, -1);
+ _cmp (NM_CONNECTIVITY_LIMITED, NM_CONNECTIVITY_FULL, -1);
+
+ _cmp (NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_UNKNOWN, 1);
+ _cmp (NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_NONE, 1);
+ _cmp (NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_LIMITED, 1);
+ _cmp (NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_PORTAL, 0);
+ _cmp (NM_CONNECTIVITY_PORTAL, NM_CONNECTIVITY_FULL, -1);
+
+ _cmp (NM_CONNECTIVITY_FULL, NM_CONNECTIVITY_UNKNOWN, 1);
+ _cmp (NM_CONNECTIVITY_FULL, NM_CONNECTIVITY_NONE, 1);
+ _cmp (NM_CONNECTIVITY_FULL, NM_CONNECTIVITY_LIMITED, 1);
+ _cmp (NM_CONNECTIVITY_FULL, NM_CONNECTIVITY_PORTAL, 1);
+ _cmp (NM_CONNECTIVITY_FULL, NM_CONNECTIVITY_FULL, 0);
+
+#undef _cmp
+}
+
+/*****************************************************************************/
+
NMTST_DEFINE ();
int
@@ -1777,6 +1833,8 @@ main (int argc, char **argv)
g_test_add_func ("/general/stable-id/parse", test_stable_id_parse);
g_test_add_func ("/general/stable-id/generated-complete", test_stable_id_generated_complete);
+ g_test_add_func ("/core/general/test_connectivity_state_cmp", test_connectivity_state_cmp);
+
return g_test_run ();
}
--
2.19.2
From b3b90479be4593c2d9e94b6805973c69ad9f9851 Mon Sep 17 00:00:00 2001
From: Thomas Haller <thaller@redhat.com>
Date: Mon, 3 Dec 2018 10:31:51 +0100
Subject: [PATCH 2/2] connectivity: fix determining the global connectivity
state
Since we determine the connectivity state of each device individually,
the global connectivity state is an aggregate of all these states.
I am not sure about considering here devices that don't have the (best)
default route for their respective address family. But anyway.
When we aggregate the best connectivity, we chose the numerical largest
value. That is wrong, because PORTAL is numerically smaller than
LIMITED.
That means, if you have two devices, one with connectivity LIMITED and
one with connectivity PORTAL, then LIMITED wrongly wins.
Fixes: 6b7e9f9b225e81d365fd95901a88a7bc59c1eb39
https://bugzilla.redhat.com/show_bug.cgi?id=1619873
(cherry picked from commit ade753d06f4d8cac3a9c374fc1d9a409e2bce904)
(cherry picked from commit d1e98e334dd71b8fafa2512911b737adffddf569)
(cherry picked from commit 18103b00d8dd6dd99c9ff17d03cdf568a56d6720)
---
src/nm-manager.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/nm-manager.c b/src/nm-manager.c
index ad906169f..d5c849386 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -2741,18 +2741,21 @@ device_connectivity_changed (NMDevice *device,
best_state = nm_device_get_connectivity_state (device);
if (best_state < NM_CONNECTIVITY_FULL) {
+ /* FIXME: is this really correct, to considere devices that don't have
+ * (the best) default route for connectivity checking? */
c_list_for_each_entry (dev, &priv->devices_lst_head, devices_lst) {
state = nm_device_get_connectivity_state (dev);
- if (state <= best_state)
+ if (nm_connectivity_state_cmp (state, best_state) <= 0)
continue;
best_state = state;
- if (best_state >= NM_CONNECTIVITY_FULL) {
+ if (nm_connectivity_state_cmp (best_state, NM_CONNECTIVITY_FULL) >= 0) {
/* it doesn't get better than this. */
break;
}
}
}
nm_assert (best_state <= NM_CONNECTIVITY_FULL);
+ nm_assert (nm_connectivity_state_cmp (best_state, NM_CONNECTIVITY_FULL) <= 0);
if (best_state != priv->connectivity_state) {
priv->connectivity_state = best_state;
--
2.19.2

View File

@ -1,77 +0,0 @@
From 886493a8f0640d6de8dbc7014df419316eae5784 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Wed, 5 Dec 2018 11:46:45 +0100
Subject: [PATCH 1/2] settings: apply agent-owned secrets from the new
connection on update
When updating a connection passing agent-owned secret, they are lost
from @reread_connection after the settings-plugin persists the
connection. Therefore we need to cache and reapply them separately to
the connection so that they can be saved to secret agents later.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/82
(cherry picked from commit a3383726dce09255b5413a6230be580856ab212c)
(cherry picked from commit 95d9fd387bcdd22e11cca98b540bb68fbd8744a0)
(cherry picked from commit 5420456cf1104a792938089aefcd4f043217edb5)
---
src/settings/nm-settings-connection.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c
index c09f68040..ccdaddb50 100644
--- a/src/settings/nm-settings-connection.c
+++ b/src/settings/nm-settings-connection.c
@@ -611,7 +611,9 @@ nm_settings_connection_update (NMSettingsConnection *self,
gboolean replaced = FALSE;
gs_free char *logmsg_change = NULL;
GError *local = NULL;
+ gs_unref_object NMConnection *simple = NULL;
gs_unref_variant GVariant *con_agent_secrets = NULL;
+ gs_unref_variant GVariant *new_agent_secrets = NULL;
g_return_val_if_fail (NM_IS_SETTINGS_CONNECTION (self), FALSE);
@@ -652,6 +654,16 @@ nm_settings_connection_update (NMSettingsConnection *self,
replace_connection = reread_connection ?: new_connection;
+ /* Save agent-owned secrets from the new connection for later use */
+ if (new_connection) {
+ simple = nm_simple_connection_new_clone (new_connection);
+ nm_connection_clear_secrets_with_flags (simple,
+ secrets_filter_cb,
+ GUINT_TO_POINTER (NM_SETTING_SECRET_FLAG_AGENT_OWNED));
+ new_agent_secrets = nm_connection_to_dbus (simple, NM_CONNECTION_SERIALIZE_ONLY_SECRETS);
+ g_clear_object (&simple);
+ }
+
/* Disconnect the changed signal to ensure we don't set Unsaved when
* it's not required.
*/
@@ -662,7 +674,6 @@ nm_settings_connection_update (NMSettingsConnection *self,
&& !nm_connection_compare (NM_CONNECTION (self),
replace_connection,
NM_SETTING_COMPARE_FLAG_EXACT)) {
- gs_unref_object NMConnection *simple = NULL;
if (log_diff_name) {
nm_utils_log_connection_diff (replace_connection, NM_CONNECTION (self), LOGL_DEBUG, LOGD_CORE, log_diff_name, "++ ",
@@ -709,6 +720,15 @@ nm_settings_connection_update (NMSettingsConnection *self,
(void) nm_connection_update_secrets (NM_CONNECTION (self), NULL, con_agent_secrets, NULL);
}
+ /* Apply agent-owned secrets from the new connection so that
+ * they can be sent to agents */
+ if (new_agent_secrets) {
+ (void) nm_connection_update_secrets (NM_CONNECTION (self),
+ NULL,
+ new_agent_secrets,
+ NULL);
+ }
+
nm_settings_connection_recheck_visibility (self);
if ( replaced
--
2.20.1

View File

@ -1,52 +0,0 @@
From 0c581081fa18aa412885a700b6d5fc017a53a463 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Mon, 8 Oct 2018 21:43:18 +0200
Subject: [PATCH 2/2] cli: fix cleanup after activation from editor
progress_activation_editor_cb() is called multiple times every 120
milliseconds and it must free resources only the last time.
Fixes: f0a26865458a42dd35975efd9bf6fdd2d9445c08
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/51
(cherry picked from commit d091cbdc2fb2c953da226b92c461ae3ede2cece0)
(cherry picked from commit fd3658e25f5c18d9d53d3f580cfce68ed416848b)
(cherry picked from commit 09d8eca1c26fe96731182df096804e8421dbdd7c)
---
clients/cli/connections.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/clients/cli/connections.c b/clients/cli/connections.c
index b547e34ca..f6066b87d 100644
--- a/clients/cli/connections.c
+++ b/clients/cli/connections.c
@@ -6523,8 +6523,8 @@ static gboolean
progress_activation_editor_cb (gpointer user_data)
{
MonitorACInfo *info = (MonitorACInfo *) user_data;
- gs_unref_object NMDevice *device = info->device;
- gs_unref_object NMActiveConnection *ac = info->ac;
+ NMDevice *device = info->device;
+ NMActiveConnection *ac = info->ac;
NMActiveConnectionState ac_state;
NMDeviceState dev_state;
@@ -6557,11 +6557,13 @@ progress_activation_editor_cb (gpointer user_data)
nm_object_get_path (NM_OBJECT (connection)));
}
- return TRUE;
+ return G_SOURCE_CONTINUE;
finish:
+ nm_g_object_unref (device);
+ nm_g_object_unref (ac);
info->monitor_id = 0;
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void
--
2.20.1

View File

@ -1,159 +0,0 @@
From 2c3014d60d8ec868fd889a906ef8c8ca9b6e8d17 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Wed, 9 Jan 2019 11:36:52 +0100
Subject: [PATCH 1/2] supplicant: set optional PMF using global supplicant
property
wpa_supplicant is going to change the global default for PMF from 0
(disabled) to 1 (optional) [1], so NM code needs to be adjusted to
work with all wpa_supplicant versions. Furthermore, it is better to
set optional PMF using the 'Pmf' property instead of the 'ieee80211w'
configuration option because the former better handles missing support
in driver [2].
Note that each interface in wpa_supplicant has its own copy of global
configuration and so 'global' options must still be set on each
interface. So, let's set Pmf=1 when each interface gets created and
override it with ieee80211w={0,2} if needed during association.
[1] http://lists.infradead.org/pipermail/hostap/2018-November/039009.html
[2] http://lists.infradead.org/pipermail/hostap/2019-January/039215.html
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/104
(cherry picked from commit a9ab50efb10dfb50cfe897c58afa300f8b07f6ba)
(cherry picked from commit 1110e0bcae7ab5a4fa9df0f8bf9ec62e7ea4a17a)
(cherry picked from commit 40adc98a6db593009dc7d92f39af9f4854a61b2a)
---
src/supplicant/nm-supplicant-config.c | 4 +--
src/supplicant/nm-supplicant-interface.c | 34 +++++++++++++++++++
src/supplicant/tests/test-supplicant-config.c | 4 +--
3 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/src/supplicant/nm-supplicant-config.c b/src/supplicant/nm-supplicant-config.c
index 22f9a3c02..e3dd55a84 100644
--- a/src/supplicant/nm-supplicant-config.c
+++ b/src/supplicant/nm-supplicant-config.c
@@ -864,11 +864,11 @@ nm_supplicant_config_add_setting_wireless_security (NMSupplicantConfig *self,
if ( !nm_streq (key_mgmt, "wpa-none")
&& NM_IN_SET (pmf,
- NM_SETTING_WIRELESS_SECURITY_PMF_OPTIONAL,
+ NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE,
NM_SETTING_WIRELESS_SECURITY_PMF_REQUIRED)) {
if (!nm_supplicant_config_add_option (self,
"ieee80211w",
- pmf == NM_SETTING_WIRELESS_SECURITY_PMF_OPTIONAL ? "1" : "2",
+ pmf == NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE ? "0" : "2",
-1,
NULL,
error))
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index e16e3130e..b816722d0 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -555,6 +555,26 @@ iface_check_netreply_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
iface_check_ready (self);
}
+static void
+iface_set_pmf_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_data)
+{
+ NMSupplicantInterface *self;
+ gs_unref_variant GVariant *variant = NULL;
+ gs_free_error GError *error = NULL;
+
+ variant = g_dbus_proxy_call_finish (proxy, result, &error);
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ return;
+
+ self = NM_SUPPLICANT_INTERFACE (user_data);
+
+ /* This can fail if the supplicant doesn't support PMF */
+ if (error)
+ _LOGD ("failed to set Pmf=1: %s", error->message);
+
+ iface_check_ready (self);
+}
+
NMSupplicantFeature
nm_supplicant_interface_get_ap_support (NMSupplicantInterface *self)
{
@@ -1155,6 +1175,20 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
NULL,
NULL);
+ /* Initialize global PMF setting to 'optional' */
+ priv->ready_count++;
+ g_dbus_proxy_call (priv->iface_proxy,
+ DBUS_INTERFACE_PROPERTIES ".Set",
+ g_variant_new ("(ssv)",
+ WPAS_DBUS_IFACE_INTERFACE,
+ "Pmf",
+ g_variant_new_string ("1")),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ priv->init_cancellable,
+ (GAsyncReadyCallback) iface_set_pmf_cb,
+ self);
+
/* Check whether NetworkReply and AP mode are supported */
priv->ready_count = 1;
g_dbus_proxy_call (priv->iface_proxy,
diff --git a/src/supplicant/tests/test-supplicant-config.c b/src/supplicant/tests/test-supplicant-config.c
index 36831e676..d7ec1fe22 100644
--- a/src/supplicant/tests/test-supplicant-config.c
+++ b/src/supplicant/tests/test-supplicant-config.c
@@ -359,8 +359,8 @@ test_wifi_wpa_psk (const char *detail,
NMTST_EXPECT_NM_INFO ("Config: added 'pairwise' value 'TKIP CCMP'");
NMTST_EXPECT_NM_INFO ("Config: added 'group' value 'TKIP CCMP'");
switch (pmf) {
- case NM_SETTING_WIRELESS_SECURITY_PMF_OPTIONAL:
- NMTST_EXPECT_NM_INFO ("Config: added 'ieee80211w' value '1'");
+ case NM_SETTING_WIRELESS_SECURITY_PMF_DISABLE:
+ NMTST_EXPECT_NM_INFO ("Config: added 'ieee80211w' value '0'");
break;
case NM_SETTING_WIRELESS_SECURITY_PMF_REQUIRED:
NMTST_EXPECT_NM_INFO ("Config: added 'ieee80211w' value '2'");
--
2.20.1
From 5d0bf9db73fc552fc311d58dd51f0825aa883937 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Mon, 14 Jan 2019 15:16:09 +0100
Subject: [PATCH 2/2] supplicant: fix ready_count assignment
Fix a wrong backport.
Fixes: 1110e0bcae7ab5a4fa9df0f8bf9ec62e7ea4a17a
(cherry picked from commit d0dd120ab4b5716eec87d65f2a1424718addf600)
(cherry picked from commit e511f724584e32cd3e618c47b8a779e7093da6bc)
---
src/supplicant/nm-supplicant-interface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index b816722d0..7450fb823 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -1176,7 +1176,7 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
NULL);
/* Initialize global PMF setting to 'optional' */
- priv->ready_count++;
+ priv->ready_count = 1;
g_dbus_proxy_call (priv->iface_proxy,
DBUS_INTERFACE_PROPERTIES ".Set",
g_variant_new ("(ssv)",
@@ -1190,7 +1190,7 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
self);
/* Check whether NetworkReply and AP mode are supported */
- priv->ready_count = 1;
+ priv->ready_count++;
g_dbus_proxy_call (priv->iface_proxy,
"NetworkReply",
g_variant_new ("(oss)",
--
2.20.1

View File

@ -1,4 +1,10 @@
# Enable connectivity checking for NetworkManager.
# See `man NetworkManager.conf`.
#
# Note that connectivity checking works badly with rp_filter set to
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
[connectivity]
enabled=true
uri=http://fedoraproject.org/static/hotspot.txt
response=OK
interval=300

View File

@ -1,4 +1,10 @@
# Enable connectivity checking for NetworkManager.
# See `man NetworkManager.conf`.
#
# Note that connectivity checking works badly with rp_filter set to
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
[connectivity]
enabled=true
uri=http://static.redhat.com/test/rhel-networkmanager.txt
response=OK
interval=300

15
70-nm-connectivity.conf Normal file
View File

@ -0,0 +1,15 @@
# The Strict mode of RFC3704 Reverse Path filtering breaks some pretty
# common and reasonable use cases.
#
# Notably, it makes it impossible for NetworkManager to do connectivity
# check on a newly arriving default route (it starts with a higher metric
# and is bumped lower if there's connectivity).
#
# Kernel's default is 0 (no filter), systemd configures a Loose filter since
# commit 230450d4e4f1 ('sysctl.d: switch net.ipv4.conf.all.rp_filter from 1
# to 2'). However, RHEL systemd package happens to default to Strict mode
# for historic reasons. Let's override it if we're doing connectivity
# checking.
# Source route verification
net.ipv4.conf.all.rp_filter = 0

View File

@ -2,27 +2,25 @@
#
# See "man 5 NetworkManager.conf" for details.
#
# The directories /usr/lib/NetworkManager/conf.d/ and /var/run/NetworkManager/conf.d/
# can contain additional configuration snippets installed by packages. These files are
# The directories /usr/lib/NetworkManager/conf.d/ and /run/NetworkManager/conf.d/
# can contain additional .conf snippets installed by packages. These files are
# read before NetworkManager.conf and have thus lowest priority.
# The directory /etc/NetworkManager/conf.d/ can contain additional configuration
# The directory /etc/NetworkManager/conf.d/ can contain additional .conf
# snippets. Those snippets are merged last and overwrite the settings from this main
# file.
#
# The files within one conf.d/ directory are read in asciibetical order.
#
# If /etc/NetworkManager/conf.d/ contains a file with the same name as
# /usr/lib/NetworkManager/conf.d/, the latter file is shadowed and thus ignored.
# Hence, to disable loading a file from /usr/lib/NetworkManager/conf.d/ you can
# put an empty file to /etc with the same name. The same applies with respect
# to the directory /var/run/NetworkManager/conf.d where files in /var/run shadow
# /usr/lib and are themselves shadowed by files under /etc.
# You can prevent loading a file /usr/lib/NetworkManager/conf.d/NAME.conf
# by having a file NAME.conf in either /run/NetworkManager/conf.d/ or /etc/NetworkManager/conf.d/.
# Likewise, snippets from /run can be prevented from loading by placing
# a file with the same name in /etc/NetworkManager/conf.d/.
#
# If two files define the same key, the one that is read afterwards will overwrite
# the previous one.
[main]
#plugins=ifcfg-rh,ibft
#plugins=keyfile,ifcfg-rh
[logging]
@ -30,8 +28,7 @@
#
# Logfiles contain no passwords and little sensitive information. But please
# check before posting the file online. You can also personally hand over the
# logfile to a NM developer to treat it confidential. Meet us on #nm on freenode.
# Please post full logfiles except minimal modifications of private data.
# logfile to a NM developer to treat it confidential. Meet us on #nm on Libera.Chat.
#
# You can also change the log-level at runtime via
# $ nmcli general logging level TRACE domains ALL
@ -42,9 +39,14 @@
# You will find the logfiles in syslog, for example via
# $ journalctl -u NetworkManager
#
# Please post full logfiles for bug reports without pre-filtering or truncation.
# Also, for debugging the entire `journalctl` output can be interesting. Don't
# limit unnecessarily with `journalctl -u`. Exceptions are if you are worried
# about private data. Check before posting logfiles!
#
# Note that debug logging of NetworkManager can be quite verbose. Some messages
# might be rate-limited by the logging daemon (see RateLimitIntervalSec, RateLimitBurst
# in man journald.conf).
# in man journald.conf). Please disable rate-limiting before collecting debug logs!
#
#level=TRACE
#domains=ALL

File diff suppressed because it is too large Load Diff

31
readme-ifcfg-rh.txt Normal file
View File

@ -0,0 +1,31 @@
NetworkManager stores new network profiles in keyfile format in the
/etc/NetworkManager/system-connections/ directory.
Previously, NetworkManager stored network profiles in ifcfg format
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
format is deprecated. By default, NetworkManager no longer creates
new profiles in this format.
Connection profiles in keyfile format have many benefits. For example,
this format is INI file-based and can easily be parsed and generated.
Each section in NetworkManager keyfiles corresponds to a NetworkManager
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
man pages. Each key-value-pair in a section is one of the properties
listed in the settings specification of the man page.
If you still use network profiles in ifcfg format, consider migrating
them to keyfile format. To migrate all profiles at once, enter:
# nmcli connection migrate
This command migrates all profiles from ifcfg format to keyfile
format and stores them in /etc/NetworkManager/system-connections/.
Alternatively, to migrate only a specific profile, enter:
# nmcli connection migrate <profile_name|UUID|D-Bus_path>
For further details, see:
* nm-settings-keyfile(5)
* nmcli(1)

View File

@ -1 +1 @@
SHA512 (NetworkManager-1.12.6.tar.xz) = b2117bdd9978ea18a7015c285abc684b7bc31ff0b4b1956194b23cbb85c2bc75bec5fc50a37493c3d717810fe683a72ef186816eb4eca889af8ea35bd1095e94
SHA512 (NetworkManager-1.43.6.tar.xz) = e1d898d3e6154018defcf189bc017a962ed93b9f5d7bafd90642cd70f9bbd4885874b24f716d524e52cf9e44c7ba338e3c416e78bd7b6ec6eaa1cb5066244504