Compare commits

...

230 Commits
f24 ... 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
Lubomir Rintel ac2eac23f7 Fix Rawhide build 2018-08-11 11:13:19 +02:00
Lubomir Rintel 1117a6f1f7 fix compile error due to NM_AVAILABLE_IN_1_12_2 2018-08-11 09:53:52 +02:00
Lubomir Rintel e49edc693e Update to 1.12.2 release 2018-07-25 12:52:04 +02:00
Fedora Release Engineering cba19ad11e - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 19:08:11 +00:00
Thomas Haller c362687d27 Update to 1.12.0 release 2018-06-29 19:19:30 +02:00
Thomas Haller 5743a963d8 fix build failure due to unstable tests 2018-06-18 11:00:20 +02:00
Thomas Haller fff3d1de66 Update to 1.12-rc1 pre-release 2018-06-16 08:19:26 +02:00
Lubomir Rintel 29a9c41bea Update to a development snapshot of NetworkManager 1.12
- Switch crypto to gnutls
- Add dispatcher-routing-rules subpackage
- Switch to Python 3-only build root
2018-05-31 17:10:30 +02:00
Vladimir Benes 98525d7834 tests: add F28 CI tests using the Standard Test Interface
Adding initial set of basic functionality tests for NetworkManager
according to the Standard Test Interface [1]. See Quick Start Guide
for brief introduction about how to run these tests [2].

[1] https://fedoraproject.org/wiki/CI/Standard_Test_Interface
[2] https://fedoraproject.org/wiki/CI/Quick_Start_Guide

[thaller@redhat.com: at this point, NetworkManager package on rawhide
  is essentially the same as on f28. So, when cherry-picking the
  tests, also intentionally keep testing the "fedora28" profile.
   1) until the packages that we test diverge, there is usually
      little reason to run a different set of tests (unless it
      makes sense due to differences in the Fedora version).
   2) as long as the set of tests that we want to run is identical,
      there is no reason to clone the test profile and bump the
      profile number.
  It follows: we stick to "fedora28" for the time being.]

(cherry picked from commit c8e00774af)
2018-05-24 09:51:01 +02:00
Beniamino Galvani d72f282e41 Update to 1.10.8 release 2018-05-14 15:55:00 +02:00
Beniamino Galvani e4a9ce242d dhcp: better handle expiry and nacks (rh #1575370)
https://bugzilla.gnome.org/show_bug.cgi?id=783391
https://bugzilla.redhat.com/show_bug.cgi?id=1575370
2018-05-06 14:28:03 +02:00
Beniamino Galvani 9fa973f15f device: fix setting 'rp_filter' value (rh #1565529) 2018-04-17 10:09:19 +02:00
Beniamino Galvani e712bef644 Fix build 2018-04-12 14:40:49 +02:00
Iryna Shcherbina 4797640ddf Update Python 2 dependency declarations to new packaging standards 2018-03-14 22:39:40 +01:00
Thomas Haller 17941a667b Update to 1.10.6 release 2018-03-12 14:15:23 +01:00
Thomas Haller 9c37f0c674 policy: fix blocking autoconnect for no-secrets (rh #1553773) 2018-03-09 15:38:47 +01:00
Thomas Haller 014828b918 trivial: rename patch 2018-03-09 15:34:53 +01:00
Lubomir Rintel b8041505cb Another attempt at fixing gcc 8 build 2018-02-07 11:53:56 +01:00
Lubomir Rintel 1f3baf8c8d Fix build 2018-02-06 17:31:32 +01:00
Lubomir Rintel 8b792ad0ef Fix build 2018-02-06 17:30:36 +01:00
Lubomir Rintel dc410627f6 Update to 1.10.4 release 2018-02-05 11:37:29 +01:00
Lubomir Rintel e5d9e5bbb2 Revert "Switch to %ldconfig_scriptlets"
This breaks build on basically everything we support. Needs more
thought.

This reverts commit 3dc75bb968.
2018-02-05 11:32:15 +01:00
Igor Gnatenko 3dc75bb968
Switch to %ldconfig_scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-02 11:25:09 +01:00
Thomas Haller 2f601f9c53 Update to 1.10.2 release 2017-12-15 11:33:34 +01:00
Björn Esser 2b734c644d
Apply patch from previous commit 2017-11-17 20:08:52 +01:00
Thomas Haller f484465e78 libnm: fix accessing enabled and metered properties 2017-11-02 16:23:09 +01:00
Thomas Haller 44c7179885 systemd: let NM-w-o.service require NetworkManager service (rh #1452866)
- systemd: let NM-w-o.service require NetworkManager service (rh #1452866)
  Related to rh #1455704.
  See also: https://github.com/systemd/systemd/pull/6065

- platform: really treat dsa devices as regular wired ethernet (rh #1371289)
  actually apply patch.

- in spec file, explicitly set dhclient as default (resync with upstream
  spec file).
2017-11-02 15:50:34 +01:00
Lubomir Rintel 7a812558d6 Actually add the patch 2017-10-09 19:47:27 +02:00
Lubomir Rintel e74c1e7f0a Actually bump the release number 2017-10-09 19:45:24 +02:00
Lubomir Rintel cfe40a7c6d platform: treat dsa devices as regular wired ethernet 2017-10-09 19:43:54 +02:00
Thomas Haller 8e0f2bf38d device: fix delay startup complete for unrealized devices (1:1.8.4-4)
And 2 more fixes from upstream.
2017-10-05 10:57:10 +02:00
Thomas Haller 11bdf5039f backport 3 patches for crashes (1.8.4-3) 2017-09-29 13:13:52 +02:00
Thomas Haller de4dee2405 enable NetworkManager-wait-online.service on package upgrade (rh#1455704) 2017-09-27 18:05:03 +02:00
Thomas Haller 354ea1ca0d Update to 1.8.4 release 2017-09-20 14:07:51 +02:00
Fedora Release Engineering 10dfa87029 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 17:01:01 +00:00
Fedora Release Engineering bbd538ac0e - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 01:56:03 +00:00
Lubomir Rintel 24d35df5f2 contrib/rpm: provide NetworkManager-devel
The package no longer exists.
2017-07-21 17:40:01 +02:00
Stephen Gallagher 0cc505ca29 Fix Requires/Provides on subpackages
NetworkManager-wifi and NetworkManager-glib-devel should require
NetworkManager, not provide it.

https://bugzilla.redhat.com/show_bug.cgi?id=1454505
2017-07-20 22:11:18 +02:00
Beniamino Galvani 46b9e17739 Import upstream patches after 1.8.2 2017-07-18 11:03:01 +02:00
Beniamino Galvani 8ca68d8c30 Update to 1.8.2 release 2017-07-18 11:03:01 +02:00
Lubomir Rintel a2ab3fed9e Add upstream patches that went into RHEL
- device: don't change MTU unless explicitly configured (rh #1460760)
- core: don't remove external IPv4 addresses (rh #1459813)
- cli: fix output of iface in overview output (rh#1460219)
- ppp: unexport NMPPPManager instance on dispose (rh#1459579)
- cli: remove spurious device names from wifi subcommands output (rh#1460527)
2017-06-22 12:52:23 +02:00
Lubomir Rintel ebf02b63fe Add upstream patches that went into RHEL
- bond: fix crash comparing mode while generating bond connection (rh #1459580)
- connectivity: fix route penalty if WWAN and BT device using ip-ifindex (rh #1459932)
- device: persist nm-owned in run state (rh #1376199)
- device: fix assuming master device on restart (rh #1452062)
- device: apply route metric penality only when the default route exists (rh #1459604)
- connectivity: fix periodic connectivity check (rh #1458399)
- bond: improve option matching on daemon restart (rh #1457909)
- device: fix touching device after external activation (rh #1457242)
2017-06-09 17:27:09 +02:00
Thomas Haller a53c203b20 import patches from rhel-7.4 (1.8.0-5.el7) as 1.8.0-4 2017-06-04 19:47:58 +02:00
Thomas Haller b018266780 update spec file from upstream 2017-05-24 13:02:31 +02:00
Thomas Haller b67ac8dd76 device: update external configuration before commit (fix bug) (rh #1449873) 2017-05-22 11:30:21 +02:00
Thomas Haller 5539474cc7 update NetworkManager.spec file with upstream
Resync spec file with upstream's contrib/fedora/rpm
NetworkManager.spec file.
2017-05-20 11:12:59 +02:00
Thomas Haller 5ac481bbc0 import patches from rhel-7.4
Let's keep rhel-7.4 and Fedora package in sync, so Fedora benefits
from bugfixes during rhel-7.4 development and RHEL benefits from
additional testing by the community.

These are all upstream patches originally cherry-picked from
nm-1-8 branch.
2017-05-20 11:07:37 +02:00
Thomas Haller 085f84674b fix version number 2017-05-10 16:48:53 +02:00
Thomas Haller 4b63db2a3c Update to 1.8.0 release 2017-05-10 16:00:37 +02:00
Lubomir Rintel 20a1eb6b48 Update to third Release Candidate of NetworkManager 1.8 2017-04-20 17:29:21 +02:00
Lubomir Rintel c2e258e5bf Update to second Release Candidate of NetworkManager 1.8 2017-04-06 14:58:15 +02:00
Lubomir Rintel a486a68256 Update to a snapshot of 1.8.x series
And sync SPEC file changes from upstream
2017-03-23 18:00:08 +01:00
Lubomir Rintel e6eb5ade9b Update to a 1.6.2 release 2017-02-16 15:39:48 +01:00
Fedora Release Engineering 9082b9c2c9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 05:13:45 +00:00
Lubomir Rintel 02c2422a55 Drop old patches 2017-01-25 18:49:37 +01:00
Lubomir Rintel 6fe2ab4151 Update to a 1.6.0 release 2017-01-25 18:29:09 +01:00
Thomas Haller a920fbcc16 Update with fixes from upstream nm-1-6 branch 1.6-0.2.rc1 2017-01-20 17:26:50 +01:00
Lubomir Rintel d142b15bef Fix FTBFS 2017-01-17 16:23:42 +01:00
Thomas Haller 263dac5e9f drop unused patch 0001-bitwise-clash.patch 2017-01-17 15:54:13 +01:00
Thomas Haller dcba8d0c1b update NetworkManager.conf default file 2017-01-17 15:53:57 +01:00
Lubomir Rintel ffc584dc8e Actually upload the file... 2017-01-17 15:48:54 +01:00
Lubomir Rintel 9b6a7107cd Fix up merge trouble 2017-01-17 15:15:53 +01:00
Lubomir Rintel f6516fc10b Update to a 1.6-rc1 2017-01-17 15:12:38 +01:00
Thomas Haller 0727cc1c28 fix build failure due to clash of bitwise defines
Also fixup the changelog for past release versions.
2017-01-12 22:29:43 +01:00
Igor Gnatenko 49933b2c3f Rebuild for readline 7.x
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-01-12 17:30:34 +01:00
Lubomir Rintel 162dc7bc1d Update to a newer development snapshot 2016-12-15 20:51:26 +01:00
Lubomir Rintel bdcc136a74 sync 2016-12-15 20:24:28 +01:00
Thomas Haller 499383592f Rebuild package for vala generation error (rh#1398738) 2016-12-06 21:11:01 +01:00
Thomas Haller f6cdb7df44 fix enabling ifcfg-rh plugin by default for +=/-= operations (rh#1397938) 2016-11-25 18:27:33 +01:00
Thomas Haller 85fff454e7 fix enabling ifcfg-rh plugin by default (rh#1397938) 2016-11-23 19:00:27 +01:00
Lubomir Rintel 86376290a3 Drop an extra rebuild that breaks on 32bit 2016-11-06 15:43:33 +01:00
Lubomir Rintel 8c478edba5 Fix a timestamp typo 2016-11-06 14:42:36 +01:00
Lubomir Rintel ce85c6f3ef Update to a development snapshot 2016-11-06 14:37:55 +01:00
Lubomir Rintel 3a1a8315bc Update to 1.4.2 2016-10-10 19:17:57 +02:00
Thomas Haller 76dec7d585 wifi: fix another activation failure when changing MAC address (rh#1371478, bgo#770456, bgo#770504) 2016-09-13 11:31:09 +02:00
Thomas Haller 2c68942743 dhcp: fix race to miss DHCP lease event (rh#1372854) 2016-09-08 00:40:29 +02:00
Thomas Haller 475c2e000a wifi: fix activation failure due to error changing MAC address (rh#1371478, bgo#770456) 2016-08-30 12:34:35 +02:00
Thomas Haller 7802605bbc update spec file with upstream's contrib/rpm 2016-08-25 12:03:03 +02:00
Lubomir Rintel ab73a3a118 Update to NetworkManager 1.4.0 release 2016-08-24 21:18:49 +02:00
Thomas Haller 26675d15eb update spec file with upstream's contrib/rpm 2016-08-11 16:03:54 +02:00
Thomas Haller 0eea3092fc fix stale Wi-Fi after resume from suspend (rh#1362165) 2016-08-11 15:45:03 +02:00
Matthias Clasen d4f66ff72e Actually bump rev 2016-07-21 08:17:44 -04:00
Matthias Clasen 42a976d0d2 Rebuild 2016-07-21 08:15:32 -04:00
Lubomir Rintel 5a338dc86f Add source 2016-07-19 15:21:33 +02:00
Lubomir Rintel aeb4a90471 Update to a later Git snapshot 2016-07-19 15:19:57 +02:00
10 changed files with 1638 additions and 805 deletions

105
.gitignore vendored
View File

@ -326,3 +326,108 @@ network-manager-applet-0.8.1.tar.bz2
/NetworkManager-1.1.93.tar.xz
/NetworkManager-1.1.94.tar.xz
/NetworkManager-1.2.2.tar.xz
/NetworkManager-1.3.0.git20160621.072358da.tar.xz
/NetworkManager-1.4.0.tar.xz
/NetworkManager-1.4.2.tar.xz
/NetworkManager-1.5.2.tar.xz
/NetworkManager-1.5.3.tar.xz
/NetworkManager-1.5.90.tar.xz
/NetworkManager-1.6.0.tar.xz
/NetworkManager-1.6.2.tar.xz
/NetworkManager-1.7.2.tar.xz
/NetworkManager-1.7.91.tar.xz
/NetworkManager-1.7.92.tar.xz
/NetworkManager-1.8.0.tar.xz
/NetworkManager-1.8.2.tar.xz
/NetworkManager-1.8.4.tar.xz
/NetworkManager-1.10.2.tar.xz
/NetworkManager-1.10.4.tar.xz
/NetworkManager-1.10.6.tar.xz
/NetworkManager-1.10.8.tar.xz
/NetworkManager-1.11.4.tar.xz
/NetworkManager-1.11.90.tar.xz
/NetworkManager-1.12.0.tar.xz
/NetworkManager-1.12.2.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,531 +0,0 @@
From 594a225264fe501ec78a8d20ee5447d18e1175b5 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Tue, 31 May 2016 17:04:03 +0200
Subject: [PATCH 1/6] core: fix some memory leaks
(cherry picked from commit ec53ed2cbaab754ddf1283658b5adfba8134e757)
(cherry picked from commit 70d194c159c80266140157db535700f8e44dbe0b)
---
src/dhcp-manager/nm-dhcp-client.c | 2 ++
src/nm-manager.c | 2 +-
src/nm-policy.c | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c
index 9f4cdf3..c102581 100644
--- a/src/dhcp-manager/nm-dhcp-client.c
+++ b/src/dhcp-manager/nm-dhcp-client.c
@@ -884,7 +884,9 @@ dispose (GObject *object)
g_clear_pointer (&priv->iface, g_free);
g_clear_pointer (&priv->hostname, g_free);
+ g_clear_pointer (&priv->fqdn, g_free);
g_clear_pointer (&priv->uuid, g_free);
+ g_clear_pointer (&priv->client_id, g_bytes_unref);
if (priv->hwaddr) {
g_byte_array_free (priv->hwaddr, TRUE);
diff --git a/src/nm-manager.c b/src/nm-manager.c
index e64c68a..04b70cb 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -3268,7 +3268,7 @@ validate_activation_request (NMManager *self,
NM_MANAGER_ERROR,
NM_MANAGER_ERROR_CONNECTION_NOT_AVAILABLE,
"Sharing IPv6 connections is not supported yet.");
- return NULL;
+ goto error;
}
/* Check whether it's a VPN or not */
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 07bcce8..cb04f21 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -913,6 +913,7 @@ block_autoconnect_for_device (NMPolicy *self, NMDevice *device)
NM_DEVICE_STATE_REASON_USER_REQUESTED);
}
}
+ g_slist_free (connections);
}
static void
--
2.5.5
From f5a98215c616a8a7f4acb9a3e03667444b8fda6e Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Tue, 24 May 2016 13:41:44 +0200
Subject: [PATCH 2/6] dns/dnsmasq: cancel pending update on dispose
There might be a pending "SetServersEx" D-Bus call when the plugin is
destroyed, ensure it gets canceled.
(cherry picked from commit d376787ce1a9e8c4990ed98be143ab892c9d29ed)
(cherry picked from commit 7541ca0692668070e48adfc5fa8e4c6501600e16)
---
src/dns-manager/nm-dns-dnsmasq.c | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index 4cee160..1df01e3 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -48,6 +48,7 @@ G_DEFINE_TYPE (NMDnsDnsmasq, nm_dns_dnsmasq, NM_TYPE_DNS_PLUGIN)
typedef struct {
GDBusProxy *dnsmasq;
GCancellable *dnsmasq_cancellable;
+ GCancellable *update_cancellable;
gboolean running;
GVariant *set_server_ex_args;
@@ -265,14 +266,20 @@ add_ip6_config (NMDnsDnsmasq *self, GVariantBuilder *servers, NMIP6Config *ip6,
}
static void
-dnsmasq_update_done (GObject *source, GAsyncResult *res, gpointer user_data)
+dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
{
- NMDnsDnsmasq *self = NM_DNS_DNSMASQ (user_data);
- NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
+ NMDnsDnsmasq *self;
+ NMDnsDnsmasqPrivate *priv;
gs_free_error GError *error = NULL;
gs_unref_variant GVariant *response = NULL;
- response = g_dbus_proxy_call_finish (priv->dnsmasq, res, &error);
+ response = g_dbus_proxy_call_finish (proxy, res, &error);
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ return;
+
+ self = NM_DNS_DNSMASQ (user_data);
+ priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
+
if (!response)
_LOGW ("dnsmasq update failed: %s", error->message);
else
@@ -290,12 +297,15 @@ send_dnsmasq_update (NMDnsDnsmasq *self)
if (priv->running) {
_LOGD ("trying to update dnsmasq nameservers");
+ nm_clear_g_cancellable (&priv->update_cancellable);
+ priv->update_cancellable = g_cancellable_new ();
+
g_dbus_proxy_call (priv->dnsmasq,
"SetServersEx",
priv->set_server_ex_args,
G_DBUS_CALL_FLAGS_NONE,
-1,
- NULL,
+ priv->update_cancellable,
(GAsyncReadyCallback) dnsmasq_update_done,
self);
g_clear_pointer (&priv->set_server_ex_args, g_variant_unref);
@@ -559,6 +569,7 @@ dispose (GObject *object)
NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (object);
nm_clear_g_cancellable (&priv->dnsmasq_cancellable);
+ nm_clear_g_cancellable (&priv->update_cancellable);
g_clear_object (&priv->dnsmasq);
--
2.5.5
From ac4bfce7dde54a607c896e90a3269633a90f3bee Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Tue, 24 May 2016 14:14:25 +0200
Subject: [PATCH 3/6] dns: clear dnsmasq cache after an update
When the list of DNS servers changes, old DNS entries cached by
dnsmasq must be invalidated as the answers returned by new servers may
be different (especially, old NXDOMAIN entries may now be valid). Call
the dnsmasq "ClearCache" D-Bus method to achieve this.
https://bugzilla.redhat.com/show_bug.cgi?id=1338731
(cherry picked from commit 4feb58b50b9fd6caceda83bab907ad107ad8ed01)
(cherry picked from commit a701e5b7ba35a0730d756ab0c1b15f0414bee592)
---
src/dns-manager/nm-dns-dnsmasq.c | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index 1df01e3..dd1234d 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -266,6 +266,25 @@ add_ip6_config (NMDnsDnsmasq *self, GVariantBuilder *servers, NMIP6Config *ip6,
}
static void
+dnsmasq_clear_cache_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
+{
+ NMDnsDnsmasq *self;
+ gs_free_error GError *error = NULL;
+ gs_unref_variant GVariant *response = NULL;
+
+ response = g_dbus_proxy_call_finish (proxy, res, &error);
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ return;
+
+ self = NM_DNS_DNSMASQ (user_data);
+
+ if (!response)
+ _LOGW ("dnsmasq cache clear failed: %s", error->message);
+ else
+ _LOGD ("dnsmasq update successful, cache cleared");
+}
+
+static void
dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
{
NMDnsDnsmasq *self;
@@ -282,8 +301,16 @@ dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
if (!response)
_LOGW ("dnsmasq update failed: %s", error->message);
- else
- _LOGD ("dnsmasq update successful");
+ else {
+ g_dbus_proxy_call (priv->dnsmasq,
+ "ClearCache",
+ NULL,
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ priv->update_cancellable,
+ (GAsyncReadyCallback) dnsmasq_clear_cache_done,
+ self);
+ }
}
static void
--
2.5.5
From b71ce01f5aa5af2851a4c5516a1c11b86b65b4b8 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <bgalvani@redhat.com>
Date: Sun, 1 May 2016 22:24:41 +0200
Subject: [PATCH 4/6] core: introduce nm_utils_dnsmasq_status_to_string()
(cherry picked from commit c0d322720a3956a40831c09f78a1dfbaf6fd9294)
(cherry picked from commit 84b0bb5ec82661a2b47928cc49879ed49fa18602)
---
src/dns-manager/nm-dns-dnsmasq.c | 23 ++------------------
src/dnsmasq-manager/nm-dnsmasq-manager.c | 36 ++++---------------------------
src/nm-core-utils.c | 37 ++++++++++++++++++++++++++++++++
src/nm-core-utils.h | 2 ++
4 files changed, 45 insertions(+), 53 deletions(-)
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index dd1234d..aaa6a3e 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -519,24 +519,6 @@ update (NMDnsPlugin *plugin,
/****************************************************************/
-static const char *
-dm_exit_code_to_msg (int status)
-{
- if (status == 1)
- return "Configuration problem";
- else if (status == 2)
- return "Network access problem (address in use; permissions; etc)";
- else if (status == 3)
- return "Filesystem problem (missing file/directory; permissions; etc)";
- else if (status == 4)
- return "Memory allocation failure";
- else if (status == 5)
- return "Other problem";
- else if (status >= 11)
- return "Lease-script 'init' process failure";
- return "Unknown error";
-}
-
static void
child_quit (NMDnsPlugin *plugin, gint status)
{
@@ -547,9 +529,8 @@ child_quit (NMDnsPlugin *plugin, gint status)
if (WIFEXITED (status)) {
err = WEXITSTATUS (status);
if (err) {
- _LOGW ("dnsmasq exited with error: %s (%d)",
- dm_exit_code_to_msg (err),
- err);
+ _LOGW ("dnsmasq exited with error: %s",
+ nm_utils_dnsmasq_status_to_string (err, NULL, 0));
} else
failed = FALSE;
} else if (WIFSTOPPED (status))
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.c b/src/dnsmasq-manager/nm-dnsmasq-manager.c
index 764aba2..12395db 100644
--- a/src/dnsmasq-manager/nm-dnsmasq-manager.c
+++ b/src/dnsmasq-manager/nm-dnsmasq-manager.c
@@ -165,36 +165,6 @@ nm_cmd_line_add_string (NMCmdLine *cmd, const char *str)
/*******************************************/
static void
-dm_exit_code (guint dm_exit_status)
-{
- char *msg = "Unknown error";
-
- switch (dm_exit_status) {
- case 1:
- msg = "Configuration problem";
- break;
- case 2:
- msg = "Network access problem (address in use; permissions; etc)";
- break;
- case 3:
- msg = "Filesystem problem (missing file/directory; permissions; etc)";
- break;
- case 4:
- msg = "Memory allocation failure";
- break;
- case 5:
- msg = "Other problem";
- break;
- default:
- if (dm_exit_status >= 11)
- msg = "Lease-script 'init' process failure";
- break;
- }
-
- _LOGW ("dnsmasq exited with error: %s (%d)", msg, dm_exit_status);
-}
-
-static void
dm_watch_cb (GPid pid, gint status, gpointer user_data)
{
NMDnsMasqManager *manager = NM_DNSMASQ_MANAGER (user_data);
@@ -203,8 +173,10 @@ dm_watch_cb (GPid pid, gint status, gpointer user_data)
if (WIFEXITED (status)) {
err = WEXITSTATUS (status);
- if (err != 0)
- dm_exit_code (err);
+ if (err != 0) {
+ _LOGW ("dnsmasq exited with error: %s",
+ nm_utils_dnsmasq_status_to_string (err, NULL, 0));
+ }
} else if (WIFSTOPPED (status)) {
_LOGW ("dnsmasq stopped unexpectedly with signal %d", WSTOPSIG (status));
} else if (WIFSIGNALED (status)) {
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
index ef44a13..a2fbdfb 100644
--- a/src/nm-core-utils.c
+++ b/src/nm-core-utils.c
@@ -3085,3 +3085,40 @@ nm_utils_lifetime_get (guint32 timestamp,
return TRUE;
}
+const char *
+nm_utils_dnsmasq_status_to_string (int status, char *dest, guint size)
+{
+ static char buffer[128];
+ char *msg, *ret;
+ gs_free char *msg_free = NULL;
+ int len;
+
+ if (status == 0)
+ msg = "Success";
+ else if (status == 1)
+ msg = "Configuration problem";
+ else if (status == 2)
+ msg = "Network access problem (address in use, permissions)";
+ else if (status == 3)
+ msg = "Filesystem problem (missing file/directory, permissions)";
+ else if (status == 4)
+ msg = "Memory allocation failure";
+ else if (status == 5)
+ msg = "Other problem";
+ else if (status >= 11)
+ msg = msg_free = g_strdup_printf ("Lease script failed with error %d", status - 10);
+ else
+ msg = "Unknown problem";
+
+ if (dest) {
+ ret = dest;
+ len = size;
+ } else {
+ ret = buffer;
+ len = sizeof (buffer);
+ }
+
+ g_snprintf (ret, len, "%s (%d)", msg, status);
+
+ return ret;
+}
diff --git a/src/nm-core-utils.h b/src/nm-core-utils.h
index ad0f995..b5083ac 100644
--- a/src/nm-core-utils.h
+++ b/src/nm-core-utils.h
@@ -394,4 +394,6 @@ gboolean nm_utils_lifetime_get (guint32 timestamp,
gboolean nm_utils_ip4_address_is_link_local (in_addr_t addr);
+const char *nm_utils_dnsmasq_status_to_string (int status, char *dest, guint size);
+
#endif /* __NM_CORE_UTILS_H__ */
--
2.5.5
From 4e78e89ac35954d38ff107c42295b1418042a13c Mon Sep 17 00:00:00 2001
From: Thomas Haller <thaller@redhat.com>
Date: Mon, 30 May 2016 12:52:23 +0200
Subject: [PATCH 5/6] dns: log when dnsmasq process exits normally
(cherry picked from commit a64d70f0df586d398aa1bcd74be131ed6dc75450)
(cherry picked from commit 2deee5286726fb2933822e105ffce634df695b35)
---
src/dns-manager/nm-dns-dnsmasq.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index aaa6a3e..f8b2dd3 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -531,8 +531,10 @@ child_quit (NMDnsPlugin *plugin, gint status)
if (err) {
_LOGW ("dnsmasq exited with error: %s",
nm_utils_dnsmasq_status_to_string (err, NULL, 0));
- } else
+ } else {
+ _LOGD ("dnsmasq exited normally");
failed = FALSE;
+ }
} else if (WIFSTOPPED (status))
_LOGW ("dnsmasq stopped unexpectedly with signal %d", WSTOPSIG (status));
else if (WIFSIGNALED (status))
--
2.5.5
From 3061adfc7d962ef645f2844dfce7df5e359509b5 Mon Sep 17 00:00:00 2001
From: Thomas Haller <thaller@redhat.com>
Date: Mon, 30 May 2016 12:58:57 +0200
Subject: [PATCH 6/6] dnsmasq: properly handling respawning of dnsmask
Otherwise, when killing dnsmasq it does not get respawned:
dnsmasq[0x560dd7e43cf0]: dnsmasq exited normally
dns-mgr: plugin dnsmasq child quit unexpectedly
dns-mgr: update-dns: updating resolv.conf
dns-mgr: config: 100 best v4 enp0s25
dns-mgr: config: 100 best v6 enp0s25
dns-mgr: config: 100 default v6 lo
dns-mgr: config: 100 default v4 lo
dns-mgr: update-dns: updating plugin dnsmasq
dnsmasq[0x560dd7e43cf0]: adding nameserver '192.168.0.2@enp0s25'
dnsmasq[0x560dd7e43cf0]: trying to update dnsmasq nameservers
dns-mgr: update-resolv-conf: write internal file /var/run/NetworkManager/resolv.conf succeeded but don't update /etc/resolv.conf as it points to resolv.conf.nm
dnsmasq[0x560dd7e43cf0]: dnsmasq disappeared
Previously, we would create priv->dnsmasq proxy only once,
and not respawn the process at all.
https://bugzilla.gnome.org/show_bug.cgi?id=766996
(cherry picked from commit 2e7f4aeb60579b092641cc8d65973baecbd5335b)
(cherry picked from commit 1f8ba33d8716858cc27cf319c85e176bcf11afa3)
---
src/dns-manager/nm-dns-dnsmasq.c | 21 ++++++++++++++++++---
src/dns-manager/nm-dns-plugin.c | 11 +++++++++++
src/dns-manager/nm-dns-plugin.h | 2 ++
3 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
index f8b2dd3..a9fcc88 100644
--- a/src/dns-manager/nm-dns-dnsmasq.c
+++ b/src/dns-manager/nm-dns-dnsmasq.c
@@ -410,11 +410,16 @@ start_dnsmasq (NMDnsDnsmasq *self)
NMBusManager *dbus_mgr;
GDBusConnection *connection;
+ if (priv->running) {
+ /* the dnsmasq process is running. Nothing to do. */
+ return;
+ }
- if ( priv->running
- || priv->dnsmasq
- || priv->dnsmasq_cancellable)
+ if (nm_dns_plugin_child_pid ((NMDnsPlugin *) self) > 0) {
+ /* if we already have a child process spawned, don't do
+ * it again. */
return;
+ }
dm_binary = nm_utils_find_helper ("dnsmasq", DNSMASQ_PATH, NULL);
if (!dm_binary) {
@@ -446,6 +451,13 @@ start_dnsmasq (NMDnsDnsmasq *self)
if (!pid)
return;
+ if ( priv->dnsmasq
+ || priv->dnsmasq_cancellable) {
+ /* we already have a proxy or are about to create it.
+ * We are done. */
+ return;
+ }
+
dbus_mgr = nm_bus_manager_get ();
g_return_if_fail (dbus_mgr);
@@ -523,6 +535,7 @@ static void
child_quit (NMDnsPlugin *plugin, gint status)
{
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
+ NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
gboolean failed = TRUE;
int err;
@@ -542,6 +555,8 @@ child_quit (NMDnsPlugin *plugin, gint status)
else
_LOGW ("dnsmasq died from an unknown cause");
+ priv->running = FALSE;
+
if (failed)
g_signal_emit_by_name (self, NM_DNS_PLUGIN_FAILED);
}
diff --git a/src/dns-manager/nm-dns-plugin.c b/src/dns-manager/nm-dns-plugin.c
index d5cb882..f45b47f 100644
--- a/src/dns-manager/nm-dns-plugin.c
+++ b/src/dns-manager/nm-dns-plugin.c
@@ -182,6 +182,17 @@ watch_cb (GPid pid, gint status, gpointer user_data)
}
GPid
+nm_dns_plugin_child_pid (NMDnsPlugin *self)
+{
+ NMDnsPluginPrivate *priv;
+
+ g_return_val_if_fail (NM_IS_DNS_PLUGIN (self), 0);
+
+ priv = NM_DNS_PLUGIN_GET_PRIVATE (self);
+ return priv->pid;
+}
+
+GPid
nm_dns_plugin_child_spawn (NMDnsPlugin *self,
const char **argv,
const char *pidfile,
diff --git a/src/dns-manager/nm-dns-plugin.h b/src/dns-manager/nm-dns-plugin.h
index 7ecaa42..b328218 100644
--- a/src/dns-manager/nm-dns-plugin.h
+++ b/src/dns-manager/nm-dns-plugin.h
@@ -111,6 +111,8 @@ GPid nm_dns_plugin_child_spawn (NMDnsPlugin *self,
const char *pidfile,
const char *kill_match);
+GPid nm_dns_plugin_child_pid (NMDnsPlugin *self);
+
gboolean nm_dns_plugin_child_kill (NMDnsPlugin *self);
#endif /* __NETWORKMANAGER_DNS_PLUGIN_H__ */
--
2.5.5

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

@ -0,0 +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,24 +2,25 @@
#
# See "man 5 NetworkManager.conf" for details.
#
# The directory /usr/lib/NetworkManager/conf.d/ can contain additional configuration
# 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
# snippets. Those snippets override the settings from this main file.
# 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 .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 with the same name.
# 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]
@ -27,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
@ -39,5 +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). 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 @@
a922bf20c2243c9014fb14c4427ad035 NetworkManager-1.2.2.tar.xz
SHA512 (NetworkManager-1.43.6.tar.xz) = e1d898d3e6154018defcf189bc017a962ed93b9f5d7bafd90642cd70f9bbd4885874b24f716d524e52cf9e44c7ba338e3c416e78bd7b6ec6eaa1cb5066244504

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
# Tests for NetworkManager
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://github.com/NetworkManager/NetworkManager-ci"
dest: "NetworkManager-ci"
tests:
- sanity-tests:
dir: NetworkManager-ci
run: run/osci/run-tests fedora28