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

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

Issue 244013002: Non-SFI NaCl: Disallow epoll family and allow poll instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" 5 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h"
6 6
7 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" 7 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
8 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" 8 #include "sandbox/linux/seccomp-bpf/bpf_tests.h"
9 9
10 namespace { 10 namespace {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #if defined(__x86_64__) || defined(__arm__) 77 #if defined(__x86_64__) || defined(__arm__)
78 RESTRICT_SYSCALL_DEATH_TEST(connect); 78 RESTRICT_SYSCALL_DEATH_TEST(connect);
79 #endif 79 #endif
80 RESTRICT_SYSCALL_DEATH_TEST(creat); 80 RESTRICT_SYSCALL_DEATH_TEST(creat);
81 #if defined(__i386__) || defined(__x86_64__) 81 #if defined(__i386__) || defined(__x86_64__)
82 RESTRICT_SYSCALL_DEATH_TEST(create_module); 82 RESTRICT_SYSCALL_DEATH_TEST(create_module);
83 #endif 83 #endif
84 RESTRICT_SYSCALL_DEATH_TEST(delete_module); 84 RESTRICT_SYSCALL_DEATH_TEST(delete_module);
85 RESTRICT_SYSCALL_DEATH_TEST(dup3); 85 RESTRICT_SYSCALL_DEATH_TEST(dup3);
86 RESTRICT_SYSCALL_DEATH_TEST(epoll_create1); 86 RESTRICT_SYSCALL_DEATH_TEST(epoll_create1);
87 RESTRICT_SYSCALL_DEATH_TEST(epoll_ctl);
87 #if defined(__x86_64__) 88 #if defined(__x86_64__)
88 RESTRICT_SYSCALL_DEATH_TEST(epoll_ctl_old); 89 RESTRICT_SYSCALL_DEATH_TEST(epoll_ctl_old);
89 #endif 90 #endif
90 RESTRICT_SYSCALL_DEATH_TEST(epoll_pwait); 91 RESTRICT_SYSCALL_DEATH_TEST(epoll_pwait);
92 RESTRICT_SYSCALL_DEATH_TEST(epoll_wait);
91 #if defined(__x86_64__) 93 #if defined(__x86_64__)
92 RESTRICT_SYSCALL_DEATH_TEST(epoll_wait_old); 94 RESTRICT_SYSCALL_DEATH_TEST(epoll_wait_old);
93 #endif 95 #endif
94 RESTRICT_SYSCALL_DEATH_TEST(eventfd); 96 RESTRICT_SYSCALL_DEATH_TEST(eventfd);
95 RESTRICT_SYSCALL_DEATH_TEST(eventfd2); 97 RESTRICT_SYSCALL_DEATH_TEST(eventfd2);
96 RESTRICT_SYSCALL_DEATH_TEST(execve); 98 RESTRICT_SYSCALL_DEATH_TEST(execve);
97 RESTRICT_SYSCALL_DEATH_TEST(faccessat); 99 RESTRICT_SYSCALL_DEATH_TEST(faccessat);
98 #if defined(__i386__) || defined(__x86_64__) 100 #if defined(__i386__) || defined(__x86_64__)
99 RESTRICT_SYSCALL_DEATH_TEST(fadvise64); 101 RESTRICT_SYSCALL_DEATH_TEST(fadvise64);
100 #endif 102 #endif
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 #if defined(__arm__) 321 #if defined(__arm__)
320 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_read); 322 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_read);
321 #endif 323 #endif
322 #if defined(__arm__) 324 #if defined(__arm__)
323 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_write); 325 RESTRICT_SYSCALL_DEATH_TEST(pciconfig_write);
324 #endif 326 #endif
325 RESTRICT_SYSCALL_DEATH_TEST(perf_event_open); 327 RESTRICT_SYSCALL_DEATH_TEST(perf_event_open);
326 RESTRICT_SYSCALL_DEATH_TEST(personality); 328 RESTRICT_SYSCALL_DEATH_TEST(personality);
327 RESTRICT_SYSCALL_DEATH_TEST(pipe2); 329 RESTRICT_SYSCALL_DEATH_TEST(pipe2);
328 RESTRICT_SYSCALL_DEATH_TEST(pivot_root); 330 RESTRICT_SYSCALL_DEATH_TEST(pivot_root);
329 RESTRICT_SYSCALL_DEATH_TEST(poll);
330 RESTRICT_SYSCALL_DEATH_TEST(ppoll); 331 RESTRICT_SYSCALL_DEATH_TEST(ppoll);
331 RESTRICT_SYSCALL_DEATH_TEST(preadv); 332 RESTRICT_SYSCALL_DEATH_TEST(preadv);
332 RESTRICT_SYSCALL_DEATH_TEST(prlimit64); 333 RESTRICT_SYSCALL_DEATH_TEST(prlimit64);
333 RESTRICT_SYSCALL_DEATH_TEST(process_vm_readv); 334 RESTRICT_SYSCALL_DEATH_TEST(process_vm_readv);
334 RESTRICT_SYSCALL_DEATH_TEST(process_vm_writev); 335 RESTRICT_SYSCALL_DEATH_TEST(process_vm_writev);
335 #if defined(__i386__) 336 #if defined(__i386__)
336 RESTRICT_SYSCALL_DEATH_TEST(prof); 337 RESTRICT_SYSCALL_DEATH_TEST(prof);
337 #endif 338 #endif
338 #if defined(__i386__) 339 #if defined(__i386__)
339 RESTRICT_SYSCALL_DEATH_TEST(profil); 340 RESTRICT_SYSCALL_DEATH_TEST(profil);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 598
598 // ARM specific syscalls. 599 // ARM specific syscalls.
599 #if defined(__arm__) 600 #if defined(__arm__)
600 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint); 601 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint);
601 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26); 602 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26);
602 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32); 603 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32);
603 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls); 604 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls);
604 #endif 605 #endif
605 606
606 } // namespace 607 } // namespace
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