Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc

Issue 509783003: Non-SFI NaCl: Allow openat system call to gracefully fail on BareMetal seccomp-bpf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Sanitizers internally use some syscalls which non-SFI NaCl disallows. 5 // Sanitizers internally use some syscalls which non-SFI NaCl disallows.
6 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && \ 6 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && \
7 !defined(MEMORY_SANITIZER) && !defined(LEAK_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
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 #if defined(__i386__) 312 #if defined(__i386__)
313 RESTRICT_SYSCALL_DEATH_TEST(oldolduname); 313 RESTRICT_SYSCALL_DEATH_TEST(oldolduname);
314 #endif 314 #endif
315 #if defined(__i386__) 315 #if defined(__i386__)
316 RESTRICT_SYSCALL_DEATH_TEST(oldstat); 316 RESTRICT_SYSCALL_DEATH_TEST(oldstat);
317 #endif 317 #endif
318 #if defined(__i386__) 318 #if defined(__i386__)
319 RESTRICT_SYSCALL_DEATH_TEST(olduname); 319 RESTRICT_SYSCALL_DEATH_TEST(olduname);
320 #endif 320 #endif
321 RESTRICT_SYSCALL_DEATH_TEST(open_by_handle_at); 321 RESTRICT_SYSCALL_DEATH_TEST(open_by_handle_at);
322 RESTRICT_SYSCALL_DEATH_TEST(openat);
323 RESTRICT_SYSCALL_DEATH_TEST(pause); 322 RESTRICT_SYSCALL_DEATH_TEST(pause);
324 #if defined(__arm__) 323 #if defined(__arm__)
325 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_iobase); 324 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_iobase);
326 #endif 325 #endif
327 #if defined(__arm__) 326 #if defined(__arm__)
328 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_read); 327 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_read);
329 #endif 328 #endif
330 #if defined(__arm__) 329 #if defined(__arm__)
331 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_write); 330 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_write);
332 #endif 331 #endif
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint); 607 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint);
609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26); 608 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26);
610 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32); 609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32);
611 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls); 610 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls);
612 #endif 611 #endif
613 612
614 } // namespace 613 } // namespace
615 614
616 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER && 615 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER &&
617 // !MEMORY_SANITIZER && !LEAK_SANITIZER 616 // !MEMORY_SANITIZER && !LEAK_SANITIZER
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox.cc ('k') | components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698