SHA256
1
0
forked from pool/libseccomp

bump ppc in the simulator

OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=26
This commit is contained in:
Jan Engelhardt 2015-03-29 00:44:32 +00:00 committed by Git OBS Bridge
parent 73798fa347
commit d83b69603c

View File

@ -17,7 +17,8 @@
src/gen_pfc.c | 8 src/gen_pfc.c | 8
tools/scmp_arch_detect.c | 12 + tools/scmp_arch_detect.c | 12 +
tools/scmp_bpf_sim.c | 8 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 Index: libseccomp-2.2.0/include/seccomp.h.in
=================================================================== ===================================================================
@ -2189,3 +2190,22 @@ Index: libseccomp-2.2.0/tools/scmp_bpf_sim.c
else else
exit_fault(EINVAL); exit_fault(EINVAL);
break; 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