| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // ASan internally uses some syscalls which non-SFI NaCl disallows. | 5 // Sanitizers internally use some syscalls which non-SFI NaCl disallows. |
| 6 // Seccomp-BPF tests die under TSan v2. See http://crbug.com/356588 | 6 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && \ |
| 7 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) | 7 !defined(MEMORY_SANITIZER) && !defined(LEAK_SANITIZER) |
| 8 | 8 |
| 9 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" | 9 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" |
| 10 | 10 |
| 11 #include <errno.h> | 11 #include <errno.h> |
| 12 #include <fcntl.h> | 12 #include <fcntl.h> |
| 13 #include <pthread.h> | 13 #include <pthread.h> |
| 14 #include <sched.h> | 14 #include <sched.h> |
| 15 #include <signal.h> | 15 #include <signal.h> |
| 16 #include <stdlib.h> | 16 #include <stdlib.h> |
| 17 #include <string.h> | 17 #include <string.h> |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 RESTRICT_SYSCALL_EPERM_TEST(madvise); | 507 RESTRICT_SYSCALL_EPERM_TEST(madvise); |
| 508 RESTRICT_SYSCALL_EPERM_TEST(open); | 508 RESTRICT_SYSCALL_EPERM_TEST(open); |
| 509 RESTRICT_SYSCALL_EPERM_TEST(ptrace); | 509 RESTRICT_SYSCALL_EPERM_TEST(ptrace); |
| 510 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list); | 510 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list); |
| 511 #if defined(__i386__) || defined(__x86_64__) | 511 #if defined(__i386__) || defined(__x86_64__) |
| 512 RESTRICT_SYSCALL_EPERM_TEST(time); | 512 RESTRICT_SYSCALL_EPERM_TEST(time); |
| 513 #endif | 513 #endif |
| 514 | 514 |
| 515 } // namespace | 515 } // namespace |
| 516 | 516 |
| 517 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER | 517 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER && |
| 518 // !MEMORY_SANITIZER && !LEAK_SANITIZER |
| OLD | NEW |