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

Side by Side Diff: components/nacl/loader/nonsfi/nonsfi_sandbox_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
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 RESTRICT_SYSCALL_EPERM_TEST(geteuid32); 507 RESTRICT_SYSCALL_EPERM_TEST(geteuid32);
508 RESTRICT_SYSCALL_EPERM_TEST(getgid32); 508 RESTRICT_SYSCALL_EPERM_TEST(getgid32);
509 RESTRICT_SYSCALL_EPERM_TEST(getuid32); 509 RESTRICT_SYSCALL_EPERM_TEST(getuid32);
510 #endif 510 #endif
511 RESTRICT_SYSCALL_EPERM_TEST(getegid); 511 RESTRICT_SYSCALL_EPERM_TEST(getegid);
512 RESTRICT_SYSCALL_EPERM_TEST(geteuid); 512 RESTRICT_SYSCALL_EPERM_TEST(geteuid);
513 RESTRICT_SYSCALL_EPERM_TEST(getgid); 513 RESTRICT_SYSCALL_EPERM_TEST(getgid);
514 RESTRICT_SYSCALL_EPERM_TEST(getuid); 514 RESTRICT_SYSCALL_EPERM_TEST(getuid);
515 RESTRICT_SYSCALL_EPERM_TEST(madvise); 515 RESTRICT_SYSCALL_EPERM_TEST(madvise);
516 RESTRICT_SYSCALL_EPERM_TEST(open); 516 RESTRICT_SYSCALL_EPERM_TEST(open);
517 RESTRICT_SYSCALL_EPERM_TEST(openat);
517 RESTRICT_SYSCALL_EPERM_TEST(ptrace); 518 RESTRICT_SYSCALL_EPERM_TEST(ptrace);
518 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list); 519 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list);
519 #if defined(__i386__) || defined(__x86_64__) 520 #if defined(__i386__) || defined(__x86_64__)
520 RESTRICT_SYSCALL_EPERM_TEST(time); 521 RESTRICT_SYSCALL_EPERM_TEST(time);
521 #endif 522 #endif
522 523
523 } // namespace 524 } // namespace
524 525
525 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER && 526 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER &&
526 // !MEMORY_SANITIZER && !LEAK_SANITIZER 527 // !MEMORY_SANITIZER && !LEAK_SANITIZER
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698