common/Seccomp.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 215a76e213f2c8bcdd099578e506a122e48752d2
Author: Hillwood Yang <[email protected]>
AuthorDate: Sat Sep 5 17:46:04 2020 +0800
Commit: Michael Meeks <[email protected]>
CommitDate: Mon Sep 7 18:19:55 2020 +0200
Support ppc64
Change-Id: I28c44b6ccc58cd49cc9c45e19e92047cabcc185d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102071
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Michael Meeks <[email protected]>
diff --git a/common/Seccomp.cpp b/common/Seccomp.cpp
index 1b05f290c..1307e4911 100644
--- a/common/Seccomp.cpp
+++ b/common/Seccomp.cpp
@@ -52,6 +52,10 @@
# define AUDIT_ARCH_NR AUDIT_ARCH_ARM
# define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.arm_##_reg)
# define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, r7)
+#elif defined(__powerpc64__)
+# define AUDIT_ARCH_NR AUDIT_ARCH_PPC64
+# define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg])
+# define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0)
#else
# error "Platform does not support seccomp filtering yet - unsafe."
#endif
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits