| 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 "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" | 11 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" |
| 12 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" | 12 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Test cases in this file just make sure not-whitelisted syscalls | 16 // Test cases in this file just make sure not-whitelisted syscalls |
| 17 // are appropriately disallowed. They should raise SIGSYS regardless | 17 // are appropriately disallowed. They should raise SIGSYS regardless |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // ARM specific syscalls. | 606 // ARM specific syscalls. |
| 607 #if defined(__arm__) | 607 #if defined(__arm__) |
| 608 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint); | 608 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint); |
| 609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26); | 609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26); |
| 610 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32); | 610 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32); |
| 611 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls); | 611 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls); |
| 612 #endif | 612 #endif |
| 613 | 613 |
| 614 } // namespace | 614 } // namespace |
| 615 | 615 |
| 616 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER | 616 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER && |
| 617 // !MEMORY_SANITIZER && !LEAK_SANITIZER |
| OLD | NEW |