[Libreoffice-commits] online.git: Branch 'libreoffice-7-0' - common/Seccomp.cpp
Hillwood Yang (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 7 08:23:20 UTC 2020
common/Seccomp.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit a9d8a5330bb77fa80d693940664fbd53998f3efe
Author: Hillwood Yang <hillwood at opensuse.org>
AuthorDate: Sat Sep 5 18:07:13 2020 +0800
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Oct 7 10:23:02 2020 +0200
Support ppc64, review the build result at https://build.opensuse.org/package/show/home:hillwood:libreofficeonline/libreoffice-online
Change-Id: I65c65599a5d52b3280cd6eda4eedae7027d49f31
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102072
Tested-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/common/Seccomp.cpp b/common/Seccomp.cpp
index e868ee01e..e830b481c 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
More information about the Libreoffice-commits
mailing list