diff options
Diffstat (limited to 'chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc')
-rw-r--r-- | chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc | 8 |
1 files changed, 5 insertions, 3 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 55394a791a5..68ce32a136c 100644 --- a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +++ b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -34,12 +34,14 @@ #if !defined(OS_NACL_NONSFI) #include <sys/ioctl.h> #include <sys/ptrace.h> -#if !defined(PTRACE_GET_THREAD_AREA) && defined(OS_LINUX) && \ - !defined(OS_CHROMEOS) +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(__arm__) && \ + !defined(__aarch64__) && !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. +// asm/ptrace-abi.h doesn't exist on arm32 and PTRACE_GET_THREAD_AREA isn't +// defined on aarch64, so don't try to include this on those platforms. #include <asm/ptrace-abi.h> -#endif // !PTRACE_GET_THREAD_AREA && OS_LINUX && !OS_CHROMEOS +#endif #endif // !OS_NACL_NONSFI #if defined(OS_ANDROID) |