Skip to content

Commit 104c0f5

Browse files
netplan: fix CVE-2022-4968 (#10945)
1 parent 827ca98 commit 104c0f5

5 files changed

Lines changed: 25 additions & 50 deletions

File tree

SPECS/netplan/disable-broken-tests.patch

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
From 727a90437e38e70a9ab8d160fa46fc022a79e577 Mon Sep 17 00:00:00 2001
2+
From: Sean Dougherty <sdougherty@microsoft.com>
3+
Date: Tue, 5 Nov 2024 22:41:09 +0000
4+
Subject: [PATCH] Temporarily disabling broken test suite due to version
5+
mismatches between pytest-cov and python3-coverage in 3.0. Originally added
6+
by Francisco Huelsz Prince.
7+
8+
---
9+
meson.build | 10 +++++-----
10+
1 file changed, 5 insertions(+), 5 deletions(-)
11+
112
diff --git a/meson.build b/meson.build
2-
index 66cda8b..5c82f28 100644
13+
index b29174d..1a8f0bb 100644
314
--- a/meson.build
415
+++ b/meson.build
516
@@ -92,11 +92,11 @@ test('legacy-tests',
6-
timeout: 600,
17+
timeout: 900,
718
env: test_env)
819
#TODO: split out dbus tests into own test() instance, to run in parallel
920
-test('unit-tests',
@@ -19,3 +30,6 @@ index 66cda8b..5c82f28 100644
1930

2031
#TODO: the coverage section should probably be cleaned up a bit
2132
if get_option('b_coverage')
33+
--
34+
2.45.2
35+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"netplan-1.0.tar.gz": "863fb083a87d2c6b7dd9d46a9d702fffbb4aaf952c6b1d275016e56b1381527a"
3+
"netplan-1.0.1.tar.gz": "7dfdcfc8134eca71af04c4e786a926a474ea95d4ebe86f7cab2efe9460c5d81e"
44
}
55
}

SPECS/netplan/netplan.spec

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
Name: netplan
15-
Version: 1.0
15+
Version: 1.0.1
1616
Release: 1%{?dist}
1717
Summary: Network configuration tool using YAML
1818
Group: System Environment/Base
@@ -22,11 +22,7 @@ License: GPLv3
2222
URL: https://netplan.io/
2323
Source0: https://github.com/canonical/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2424

25-
# Fix bug in netplan when python3-rich is not present.
26-
Patch2: rich-import-failure-no-log.patch
27-
28-
# Temporarily disabling broken test suite due to version mismatches between
29-
# pytest-cov and python3-coverage in 3.0.
25+
# Temporarily disabling broken test suite due to version mismatches between pytest-cov and python3-coverage in 3.0.
3026
Patch3: disable-broken-tests.patch
3127

3228
BuildRequires: bash-completion-devel
@@ -228,6 +224,10 @@ chmod 600 %{buildroot}%{_prefix}/lib/%{name}/00-netplan-default-renderer-network
228224
%meson_test
229225

230226
%changelog
227+
* Mon Nov 04 2024 Sean Dougherty <sdougherty@microsoft.com> - 1.0.1-1
228+
- Upgrade to 1.0.1, which addresses CVE-2022-4968
229+
- Removed patch whose fix is now merged
230+
231231
* Fri Mar 29 2024 Francisco Huelsz prince <frhuelsz@microsoft.com> - 1.0-1
232232
- Upgrade to 1.0
233233

SPECS/netplan/rich-import-failure-no-log.patch

Lines changed: 0 additions & 39 deletions
This file was deleted.

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13922,8 +13922,8 @@
1392213922
"type": "other",
1392313923
"other": {
1392413924
"name": "netplan",
13925-
"version": "1.0",
13926-
"downloadUrl": "https://github.com/canonical/netplan/archive/refs/tags/1.0.tar.gz"
13925+
"version": "1.0.1",
13926+
"downloadUrl": "https://github.com/canonical/netplan/archive/refs/tags/1.0.1.tar.gz"
1392713927
}
1392813928
}
1392913929
},

0 commit comments

Comments
 (0)