]> git.pld-linux.org Git - packages/openssh.git/commitdiff
upstream patch to allow pselect6_time64 in seccomp filter
authorJan Palus <atler@pld-linux.org>
Wed, 3 Feb 2021 22:31:05 +0000 (23:31 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 3 Feb 2021 22:32:57 +0000 (23:32 +0100)
appears to be required by arm with glibc 2.33

allow_pselect6_time64.patch [new file with mode: 0644]
openssh.spec

diff --git a/allow_pselect6_time64.patch b/allow_pselect6_time64.patch
new file mode 100644 (file)
index 0000000..046e030
--- /dev/null
@@ -0,0 +1,30 @@
+From 0f90440ca70abab947acbd77795e9f130967956c Mon Sep 17 00:00:00 2001
+From: Darren Tucker <dtucker@dtucker.net>
+Date: Fri, 20 Nov 2020 13:37:54 +1100
+Subject: Add new pselect6_time64 syscall on ARM.
+
+This is apparently needed on armhfp/armv7hl.  bz#3232, patch from
+jjelen at redhat.com.
+---
+ sandbox-seccomp-filter.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+(limited to 'sandbox-seccomp-filter.c')
+
+diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
+index e0768c06..5065ae7e 100644
+--- a/sandbox-seccomp-filter.c
++++ b/sandbox-seccomp-filter.c
+@@ -267,6 +267,9 @@ static const struct sock_filter preauth_insns[] = {
+ #ifdef __NR_pselect6
+       SC_ALLOW(__NR_pselect6),
+ #endif
++#ifdef __NR_pselect6_time64
++      SC_ALLOW(__NR_pselect6_time64),
++#endif
+ #ifdef __NR_read
+       SC_ALLOW(__NR_read),
+ #endif
+-- 
+cgit v1.2.3
+
index 3115ad1b56571f52839d4b2079539310c521f9a5..2d17c50a38644bc682e8b836bae20b1c193c1444 100644 (file)
@@ -74,6 +74,7 @@ Patch12:      openssh-bug-2905.patch
 Patch13:       %{name}-skip-interop-tests.patch
 Patch14:       %{name}-bind.patch
 Patch15:       %{name}-disable_ldap.patch
+Patch16:       allow_pselect6_time64.patch
 URL:           http://www.openssh.com/portable.html
 BuildRequires: %{__perl}
 %{?with_audit:BuildRequires:   audit-libs-devel}
@@ -559,6 +560,7 @@ openldap-a.
 
 %patch14 -p1
 %{!?with_ldap:%patch15 -p1}
+%patch16 -p1
 
 %if "%{pld_release}" == "ac"
 # fix for missing x11.pc
This page took 0.047658 seconds and 4 git commands to generate.