summaryrefslogtreecommitdiff
path: root/net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-10 22:32:41 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-10 22:32:41 +0300
commit5ce1bbe7d1016464d20c4c7749a752b0ce089663 (patch)
tree078f9fc4f2ad6ed5df56829843ba61726c0a430d /net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch
parent9421d2f948084be45a7ce74a4cb40a2062b1eb06 (diff)
openssh-scm
Diffstat (limited to 'net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch')
-rw-r--r--net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch b/net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch
new file mode 100644
index 0000000..7eaadaf
--- /dev/null
+++ b/net-misc/openssh/files/openssh-7.3-mips-seccomp-n32.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/591392
+https://bugzilla.mindrot.org/show_bug.cgi?id=2590
+
+7.3 added seccomp support to MIPS, but failed to handled the N32
+case. This patch is temporary until upstream fixes.
+
+--- openssh-7.3p1/configure.ac
++++ openssh-7.3p1/configure.ac
+@@ -816,10 +816,10 @@ main() { if (NSVersionOfRunTimeLibrary("
+ seccomp_audit_arch=AUDIT_ARCH_MIPSEL
+ ;;
+ mips64-*)
+- seccomp_audit_arch=AUDIT_ARCH_MIPS64
++ seccomp_audit_arch=AUDIT_ARCH_MIPS64N32
+ ;;
+ mips64el-*)
+- seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
++ seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32
+ ;;
+ esac
+ if test "x$seccomp_audit_arch" != "x" ; then