summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh/openssh
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-17 15:38:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-20 00:02:22 +0000
commitafcbe8232028acd1be034fdbc13d3338c6ce1732 (patch)
tree7aaff2b6f8c75f453ad533050e4f8ac45538b2a6 /meta/recipes-connectivity/openssh/openssh
parentf8134d36926efc7b4b2150a3e4fe98281a476212 (diff)
downloadpoky-afcbe8232028acd1be034fdbc13d3338c6ce1732.tar.gz
openssh: Default to not using sandbox when cross compiling
backport a patch to fix sandboxing issues seen on ppc32 and also on riscv32 [1] [1] https://bugzilla.mindrot.org/show_bug.cgi?id=3398 (From OE-Core rev: 90895a627be5e8a4e4943fa9195b5553416086d3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/0001-Default-to-not-using-sandbox-when-cross-compiling.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/0001-Default-to-not-using-sandbox-when-cross-compiling.patch b/meta/recipes-connectivity/openssh/openssh/0001-Default-to-not-using-sandbox-when-cross-compiling.patch
new file mode 100644
index 0000000000..0241c290ac
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/0001-Default-to-not-using-sandbox-when-cross-compiling.patch
@@ -0,0 +1,33 @@
1From 56194e9a6043873b0ec84f9d15c6e4caca2580c8 Mon Sep 17 00:00:00 2001
2From: Darren Tucker <dtucker@dtucker.net>
3Date: Tue, 8 Mar 2022 20:04:06 +1100
4Subject: [PATCH] Default to not using sandbox when cross compiling.
5
6On most systems poll(2) does not work when the number of FDs is reduced
7with setrlimit, so assume it doesn't when cross compiling and we can't
8run the test. bz#3398.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Upstream-Status: Backport [https://anongit.mindrot.org/openssh.git/patch/?id=8cf5275452a950869cb90eeac7d220b01f77b12e]
12---
13 configure.ac | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index 17fb1e6..a165d08 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -3574,8 +3574,8 @@ AC_RUN_IFELSE(
21 select_works_with_rlimit=yes],
22 [AC_MSG_RESULT([no])
23 select_works_with_rlimit=no],
24- [AC_MSG_WARN([cross compiling: assuming yes])
25- select_works_with_rlimit=yes]
26+ [AC_MSG_WARN([cross compiling: assuming no])
27+ select_works_with_rlimit=no]
28 )
29
30 AC_CHECK_MEMBERS([struct pollfd.fd], [], [], [[
31--
322.35.1
33