summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2019-07-25 07:51:39 +0200
committerRolf Eike Beer <eb@emlix.com>2020-06-08 11:00:12 +0000
commit404035be60e518e8042630bb94ea9fd04a78fb9a (patch)
tree6195baa2e2db5537ee38ee86d31babc3759c43c5
parentfb5b255f72b47f3f5c38f4fc23adf62ee6debbc4 (diff)
Fix compilation on arm with old glibc 2.17
Check for PTRACE_GET_THREAD_AREA, PTRACE_GETVFPREGS Task-number: QTBUG-77171 Change-Id: Iab787aa70e5a013adff8466309d44917bd6f4a0c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 96dfb9878e90486353d994ca016c27c7c1f1b6b9) Reviewed-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
index d9789a7133e..92561dcfb4d 100644
--- a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
+++ b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
@@ -412,9 +412,11 @@ ResultExpr RestrictPtrace() {
#if !defined(__aarch64__)
PTRACE_GETREGS,
PTRACE_GETFPREGS,
+#if defined(TRACE_GET_THREAD_AREA)
PTRACE_GET_THREAD_AREA,
#endif
-#if defined(__arm__)
+#endif
+#if defined(__arm__) && defined (PTRACE_GETVFPREGS)
PTRACE_GETVFPREGS,
#endif
PTRACE_GETREGSET,