SHA256
1
0
forked from pool/amanda

Accepting request 1066332 from Archiving

OBS-URL: https://build.opensuse.org/request/show/1066332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/amanda?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2023-02-17 15:45:36 +00:00 committed by Git OBS Bridge
commit 0903805702
3 changed files with 26 additions and 1 deletions

16
CVE-2022-37705.patch Normal file
View File

@ -0,0 +1,16 @@
Index: amanda-tag-community-3.5.2/client-src/runtar.c
===================================================================
--- amanda-tag-community-3.5.2.orig/client-src/runtar.c
+++ amanda-tag-community-3.5.2/client-src/runtar.c
@@ -191,9 +191,9 @@ main(
g_str_has_prefix(argv[i],"--newer") ||
g_str_has_prefix(argv[i],"--exclude-from") ||
g_str_has_prefix(argv[i],"--files-from")) {
- /* Accept theses options with the following argument */
- good_option += 2;
+ good_option++;
} else if (argv[i][0] != '-') {
+ /* argument values are accounted for here */
good_option++;
}
}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 16 11:03:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add CVE-2022-37705.patch to fix privilege scalation
(boo#1208032, gh#zmanda/amanda#194)
-------------------------------------------------------------------
Fri Oct 7 12:43:58 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package amanda
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -37,6 +37,8 @@ Patch7: amanda-libnsl.patch
Patch8: amanda-3.5.1-GCC10_extern.patch
# PATCH-FIX-UPSTREAM amanda-3.5.2-fix-tests.patch -- gh#zmanda/amanda#167
Patch9: amanda-3.5.2-fix-tests.patch
# PATCH-FIX-UPSTREAM CVE-2022-37705.patch -- boo#1208032, gh#zmanda/amanda#194
Patch10: CVE-2022-37705.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@ -95,6 +97,7 @@ running multiple versions of Linux or Unix.
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
./autogen