qt5-webengine: fix ppc64le patch and ppc64le musl patch

This commit is contained in:
q66 2020-06-18 17:24:25 +02:00
parent a504754982
commit 843a9af662
2 changed files with 17 additions and 7 deletions

View File

@ -858,15 +858,15 @@ index 923533ec9..99184a7f9 100644
static bool IsNetworkSocketInformation(int sysno);
#endif
@@ -77,7 +78,8 @@ class SANDBOX_EXPORT SyscallSets {
@@ -88,7 +90,8 @@ class SANDBOX_EXPORT SyscallSets {
#endif
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
defined(__aarch64__) || \
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS))
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \
#if defined(__i386__) || \
- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \
+ defined(__powerpc64__)
// These give a lot of ambient authority and bypass the setuid sandbox.
static bool IsSystemVSharedMemory(int sysno);
// Big system V multiplexing system call.
static bool IsSystemVIpc(int sysno);
#endif
diff --git a/src/3rdparty/chromium/sandbox/linux/seccomp-bpf/syscall.cc b/src/3rdparty/chromium/sandbox/linux/seccomp-bpf/syscall.cc
index 34edabd2b..10fa5fd07 100644

View File

@ -159,6 +159,16 @@ index 901cd68fb..561958c44 100644
namespace google_breakpad {
namespace {
--- a/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/thread_info.h
+++ b/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/thread_info.h
@@ -30,6 +30,7 @@
#if defined(ARCH_CPU_PPC64_FAMILY)
#include <sys/ucontext.h>
+#include <asm/ptrace.h>
#endif
namespace crashpad {
--
2.26.0