summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2020-02-15 15:30:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-15 22:42:14 +0000
commit83771beb99462366e5eada75e2687ae6a1bd0890 (patch)
treec2e1f67257b97ece196121dcb91dcaeef6b0d4e0 /meta/recipes-connectivity/openssh
parent67aadc83dc78c824da49f7199b66899806b6cce9 (diff)
downloadpoky-83771beb99462366e5eada75e2687ae6a1bd0890.tar.gz
openssh: Upgrade 8.1p1 -> 8.2p1
Drop backports from upstream: 0001-Manually-applied-upstream-fix-for-openssh-test.patch 0001-seccomp-Allow-clock_gettime64-in-sandbox.patch openssh-8.1p1-seccomp-nanosleep.patch (From OE-Core rev: c9b5802bbe1de609450f509edf4721ab0a7a70aa) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/0001-Manually-applied-upstream-fix-for-openssh-test.patch60
-rw-r--r--meta/recipes-connectivity/openssh/openssh/0001-seccomp-Allow-clock_gettime64-in-sandbox.patch31
-rw-r--r--meta/recipes-connectivity/openssh/openssh/openssh-8.1p1-seccomp-nanosleep.patch27
-rw-r--r--meta/recipes-connectivity/openssh/openssh_8.2p1.bb (renamed from meta/recipes-connectivity/openssh/openssh_8.1p1.bb)7
4 files changed, 2 insertions, 123 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/0001-Manually-applied-upstream-fix-for-openssh-test.patch b/meta/recipes-connectivity/openssh/openssh/0001-Manually-applied-upstream-fix-for-openssh-test.patch
deleted file mode 100644
index 7171ec0834..0000000000
--- a/meta/recipes-connectivity/openssh/openssh/0001-Manually-applied-upstream-fix-for-openssh-test.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 0a68d6cfe255f8bcdd5f9db0d008a8f0a60b237a Mon Sep 17 00:00:00 2001
2From: "Mingde (Matthew) Zeng" <matthew.zeng@windriver.com>
3Date: Wed, 15 Jan 2020 15:51:42 -0500
4Subject: [PATCH] Manually applied upstream fix for openssh test
5
6Upstream Status: Backport:
7 https://github.com/openssh/openssh-portable/commit/ff31f15773ee173502eec4d7861ec56f26bba381
8
9Signed-off-by: Mingde (Matthew) Zeng<matthew.zeng@windriver.com>
10---
11 regress/cert-hostkey.sh | 4 ++--
12 regress/cert-userkey.sh | 5 ++---
13 2 files changed, 4 insertions(+), 5 deletions(-)
14
15diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh
16index 86ea6250..60e3ec02 100644
17--- a/regress/cert-hostkey.sh
18+++ b/regress/cert-hostkey.sh
19@@ -1,4 +1,4 @@
20-# $OpenBSD: cert-hostkey.sh,v 1.18 2019/07/25 08:28:15 dtucker Exp $
21+# $OpenBSD: cert-hostkey.sh,v 1.23 2020/01/03 03:02:26 djm Exp $
22 # Placed in the Public Domain.
23
24 tid="certified host keys"
25@@ -252,7 +252,7 @@ test_one() {
26 test_one "user-certificate" failure "-n $HOSTS"
27 test_one "empty principals" success "-h"
28 test_one "wrong principals" failure "-h -n foo"
29-test_one "cert not yet valid" failure "-h -V20200101:20300101"
30+test_one "cert not yet valid" failure "-h -V20300101:20320101"
31 test_one "cert expired" failure "-h -V19800101:19900101"
32 test_one "cert valid interval" success "-h -V-1w:+2w"
33 test_one "cert has constraints" failure "-h -Oforce-command=false"
34diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
35index 38c14a69..f0e30945 100644
36--- a/regress/cert-userkey.sh
37+++ b/regress/cert-userkey.sh
38@@ -1,4 +1,4 @@
39-# $OpenBSD: cert-userkey.sh,v 1.21 2019/07/25 08:28:15 dtucker Exp $
40+# $OpenBSD: cert-userkey.sh,v 1.25 2020/01/03 03:02:26 djm Exp $
41 # Placed in the Public Domain.
42
43 tid="certified user keys"
44@@ -338,7 +338,7 @@ test_one() {
45 test_one "correct principal" success "-n ${USER}"
46 test_one "host-certificate" failure "-n ${USER} -h"
47 test_one "wrong principals" failure "-n foo"
48-test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101"
49+test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101"
50 test_one "cert expired" failure "-n ${USER} -V19800101:19900101"
51 test_one "cert valid interval" success "-n ${USER} -V-1w:+2w"
52 test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8"
53@@ -399,4 +399,3 @@ done
54
55 rm -f $OBJ/authorized_keys_$USER $OBJ/user_ca_key* $OBJ/cert_user_key*
56 rm -f $OBJ/authorized_principals_$USER
57-
58--
592.24.1
60
diff --git a/meta/recipes-connectivity/openssh/openssh/0001-seccomp-Allow-clock_gettime64-in-sandbox.patch b/meta/recipes-connectivity/openssh/openssh/0001-seccomp-Allow-clock_gettime64-in-sandbox.patch
deleted file mode 100644
index 78c493de86..0000000000
--- a/meta/recipes-connectivity/openssh/openssh/0001-seccomp-Allow-clock_gettime64-in-sandbox.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From eae3e85322fa7c869f5822db4eda6348f2beb09e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 7 Jan 2020 16:26:45 -0800
4Subject: [PATCH] seccomp: Allow clock_gettime64() in sandbox.
5
6This helps sshd accept connections on mips platforms with
7upcoming glibc ( 2.31 )
8
9Upstream-Status: Accepted [https://github.com/openssh/openssh-portable/pull/161]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 sandbox-seccomp-filter.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
16index 3ef30c9..999c46c 100644
17--- a/sandbox-seccomp-filter.c
18+++ b/sandbox-seccomp-filter.c
19@@ -248,6 +248,9 @@ static const struct sock_filter preauth_insns[] = {
20 #ifdef __NR_clock_nanosleep_time64
21 SC_ALLOW(__NR_clock_nanosleep_time64),
22 #endif
23+#ifdef __NR_clock_gettime64
24+ SC_ALLOW(__NR_clock_gettime64),
25+#endif
26 #ifdef __NR__newselect
27 SC_ALLOW(__NR__newselect),
28 #endif
29--
302.24.1
31
diff --git a/meta/recipes-connectivity/openssh/openssh/openssh-8.1p1-seccomp-nanosleep.patch b/meta/recipes-connectivity/openssh/openssh/openssh-8.1p1-seccomp-nanosleep.patch
deleted file mode 100644
index 7c9d61c26d..0000000000
--- a/meta/recipes-connectivity/openssh/openssh/openssh-8.1p1-seccomp-nanosleep.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1commit 7e929163ed40f9ce90060a3ca6df558c3d901379
2Author: Jakub Jelen <jjelen@redhat.com>
3Date: Wed Nov 13 12:57:05 2019 +0100
4
5seccomp: Allow clock_nanosleep() to make OpenSSH working with latest glibc
6sandbox-seccomp: Allow clock_nanosleep on ARM
7
8Upstream-Status: Backport [https://github.com/tcely/openssh-portable/pull/258]
9 [https://github.com/bobby0809/openssh-portable/pull/138]
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com
12
13--- a/sandbox-seccomp-filter.c
14+++ b/sandbox-seccomp-filter.c
15@@ -242,6 +242,12 @@ static const struct sock_filter preauth_
16 #ifdef __NR_nanosleep
17 SC_ALLOW(__NR_nanosleep),
18 #endif
19+#ifdef __NR_clock_nanosleep
20+ SC_ALLOW(__NR_clock_nanosleep),
21+#endif
22+#ifdef __NR_clock_nanosleep_time64
23+ SC_ALLOW(__NR_clock_nanosleep_time64),
24+#endif
25 #ifdef __NR__newselect
26 SC_ALLOW(__NR__newselect),
27 #endif
diff --git a/meta/recipes-connectivity/openssh/openssh_8.1p1.bb b/meta/recipes-connectivity/openssh/openssh_8.2p1.bb
index 8e7896cf4a..d879efc201 100644
--- a/meta/recipes-connectivity/openssh/openssh_8.1p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_8.2p1.bb
@@ -24,12 +24,9 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
24 file://fix-potential-signed-overflow-in-pointer-arithmatic.patch \ 24 file://fix-potential-signed-overflow-in-pointer-arithmatic.patch \
25 file://sshd_check_keys \ 25 file://sshd_check_keys \
26 file://add-test-support-for-busybox.patch \ 26 file://add-test-support-for-busybox.patch \
27 file://openssh-8.1p1-seccomp-nanosleep.patch \
28 file://0001-seccomp-Allow-clock_gettime64-in-sandbox.patch \
29 file://0001-Manually-applied-upstream-fix-for-openssh-test.patch \
30 " 27 "
31SRC_URI[md5sum] = "513694343631a99841e815306806edf0" 28SRC_URI[md5sum] = "3076e6413e8dbe56d33848c1054ac091"
32SRC_URI[sha256sum] = "02f5dbef3835d0753556f973cd57b4c19b6b1f6cd24c03445e23ac77ca1b93ff" 29SRC_URI[sha256sum] = "43925151e6cf6cee1450190c0e9af4dc36b41c12737619edff8bcebdff64e671"
33 30
34PAM_SRC_URI = "file://sshd" 31PAM_SRC_URI = "file://sshd"
35 32