fix test_sshd.test failure
This commit is contained in:
parent
aefe46293d
commit
13650e780e
15
libssh2-1.11.0-strict-modes.patch
Normal file
15
libssh2-1.11.0-strict-modes.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Group-writeable directories in the hierarchy above where we
|
||||||
|
run the tests from can cause failures due to openssh's strict
|
||||||
|
permissions checks. Adding this option helps the tests to run
|
||||||
|
more reliably on a variety of build systems.
|
||||||
|
|
||||||
|
--- /tests/test_sshd.test
|
||||||
|
+++ /tests/test_sshd.test
|
||||||
|
@@ -71,6 +71,7 @@ chmod go-rwx \
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
"${SSHD}" \
|
||||||
|
-f "${SSHD_FIXTURE_CONFIG:-${d}/openssh_server/sshd_config}" \
|
||||||
|
+ -o 'StrictModes no' \
|
||||||
|
-o 'Port 4711' \
|
||||||
|
-h "${d}/openssh_server/ssh_host_rsa_key" \
|
||||||
|
-h "${d}/openssh_server/ssh_host_ecdsa_key" \
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: libssh2
|
Name: libssh2
|
||||||
Version: 1.11.0
|
Version: 1.11.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A library implementing the SSH2 protocol
|
Summary: A library implementing the SSH2 protocol
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://www.libssh2.org/
|
URL: https://www.libssh2.org/
|
||||||
Source0: https://libssh2.org/download/libssh2-%{version}.tar.gz
|
Source0: https://libssh2.org/download/libssh2-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: backport-src-add-strict-KEX-to-fix-CVE-2023-48795-Terrapin-At.patch
|
Patch0: backport-src-add-strict-KEX-to-fix-CVE-2023-48795-Terrapin-At.patch
|
||||||
|
Patch1: libssh2-1.11.0-strict-modes.patch
|
||||||
|
|
||||||
BuildRequires: coreutils findutils /usr/bin/man zlib-devel
|
BuildRequires: coreutils findutils /usr/bin/man zlib-devel
|
||||||
BuildRequires: gcc make sed openssl-devel > 1:1.0.2 openssh-server
|
BuildRequires: gcc make sed openssl-devel > 1:1.0.2 openssh-server
|
||||||
@ -86,6 +87,12 @@ LC_ALL=en_US.UTF-8 make -C tests check
|
|||||||
%{_mandir}/man3/libssh2_*.3*
|
%{_mandir}/man3/libssh2_*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 04 2024 yueyuankun<yueyuankun@kylinos.cn> - 1.11.0-3
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add patch to work around strict permissions issues for sshd tests
|
||||||
|
|
||||||
* Tue Apr 16 2024 renmingshuai <renmingshuai@huawei.com> - 1.11.0-2
|
* Tue Apr 16 2024 renmingshuai <renmingshuai@huawei.com> - 1.11.0-2
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:CVE-2023-48795
|
- ID:CVE-2023-48795
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user