From f6a096caf2001b9fc93648b09029339f8705d733 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 6 Jun 2016 10:16:31 +0200 Subject: [PATCH] Build seccomp filter on ppc64(le) architecture (#1195065) --- openssh-6.9p1-seccomp-secondary.patch | 8 +++++++- openssh.spec | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/openssh-6.9p1-seccomp-secondary.patch b/openssh-6.9p1-seccomp-secondary.patch index 97e16d2..f5eef34 100644 --- a/openssh-6.9p1-seccomp-secondary.patch +++ b/openssh-6.9p1-seccomp-secondary.patch @@ -16,7 +16,7 @@ diff --git a/configure.ac b/configure.ac index 24378a7..0bed910 100644 --- a/configure.ac +++ b/configure.ac -@@ -811,6 +811,12 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) +@@ -811,6 +811,18 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) aarch64*-*) seccomp_audit_arch=AUDIT_ARCH_AARCH64 ;; @@ -25,6 +25,12 @@ index 24378a7..0bed910 100644 + ;; + s390-*) + seccomp_audit_arch=AUDIT_ARCH_S390 ++ ;; ++ powerpc64-*) ++ seccomp_audit_arch=AUDIT_ARCH_PPC64 ++ ;; ++ powerpc64le-*) ++ seccomp_audit_arch=AUDIT_ARCH_PPC64LE + ;; esac if test "x$seccomp_audit_arch" != "x" ; then diff --git a/openssh.spec b/openssh.spec index b39dc0e..d0391a6 100644 --- a/openssh.spec +++ b/openssh.spec @@ -574,7 +574,7 @@ make clean %endif %if %{WITH_SELINUX} --with-selinux --with-audit=linux \ -%ifarch %{ix86} x86_64 %{arm} aarch64 s390x x390 +%ifnarch ppc --with-sandbox=seccomp_filter \ %else --with-sandbox=rlimit \