From d83b69603c8dc372fbaa3b6071d52ced78ec1487e7268d4f70b16ed653c3f3c6 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 29 Mar 2015 00:44:32 +0000 Subject: [PATCH] bump ppc in the simulator OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=26 --- libseccomp-s390x-support.patch | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/libseccomp-s390x-support.patch b/libseccomp-s390x-support.patch index 0f5fb68..1871baa 100644 --- a/libseccomp-s390x-support.patch +++ b/libseccomp-s390x-support.patch @@ -17,7 +17,8 @@ src/gen_pfc.c | 8 tools/scmp_arch_detect.c | 12 + tools/scmp_bpf_sim.c | 8 - 18 files changed, 2015 insertions(+), 1 deletion(-) + tools/util.c | 8 + 19 files changed, 2023 insertions(+), 1 deletion(-) Index: libseccomp-2.2.0/include/seccomp.h.in =================================================================== @@ -2189,3 +2190,22 @@ Index: libseccomp-2.2.0/tools/scmp_bpf_sim.c else exit_fault(EINVAL); break; +Index: libseccomp-2.2.0/tools/util.c +=================================================================== +--- libseccomp-2.2.0.orig/tools/util.c ++++ libseccomp-2.2.0/tools/util.c +@@ -62,6 +62,14 @@ + #elif __MIPSEL__ + #define ARCH_NATIVE AUDIT_ARCH_MIPSEL64N32 + #endif /* _MIPS_SIM_NABI32 */ ++#elif __s390__ ++#define ARCH_NATIVE AUDIT_ARCH_S390 ++#elif __s390x__ ++#define ARCH_NATIVE AUDIT_ARCH_S390X ++#elif __powerpc64__ ++#define ARCH_NATIVE AUDIT_ARCH_PPC64 ++#elif __powerpc__ ++#define ARCH_NATIVE AUDIT_ARCH_PPC + #else + #error the simulator code needs to know about your machine type + #endif