| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "sandbox/linux/seccomp-bpf-helpers/syscall_sets.h" | 5 #include "sandbox/linux/seccomp-bpf-helpers/syscall_sets.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "sandbox/linux/services/linux_syscalls.h" | 8 #include "sandbox/linux/services/linux_syscalls.h" |
| 9 | 9 |
| 10 namespace sandbox { | 10 namespace sandbox { |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 return true; | 922 return true; |
| 923 default: | 923 default: |
| 924 return false; | 924 return false; |
| 925 } | 925 } |
| 926 } | 926 } |
| 927 | 927 |
| 928 // Various system calls that need to be researched. | 928 // Various system calls that need to be researched. |
| 929 // TODO(jln): classify this better. | 929 // TODO(jln): classify this better. |
| 930 bool SyscallSets::IsMisc(int sysno) { | 930 bool SyscallSets::IsMisc(int sysno) { |
| 931 switch (sysno) { | 931 switch (sysno) { |
| 932 #if !defined(_mips_) | 932 #if !defined(__mips__) |
| 933 case __NR_getrandom: | 933 case __NR_getrandom: |
| 934 #endif | 934 #endif |
| 935 case __NR_name_to_handle_at: | 935 case __NR_name_to_handle_at: |
| 936 case __NR_open_by_handle_at: | 936 case __NR_open_by_handle_at: |
| 937 case __NR_perf_event_open: | 937 case __NR_perf_event_open: |
| 938 case __NR_syncfs: | 938 case __NR_syncfs: |
| 939 case __NR_vhangup: | 939 case __NR_vhangup: |
| 940 // The system calls below are not implemented. | 940 // The system calls below are not implemented. |
| 941 #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) | 941 #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) |
| 942 case __NR_afs_syscall: | 942 case __NR_afs_syscall: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 switch (sysno) { | 1015 switch (sysno) { |
| 1016 case __NR_sysmips: | 1016 case __NR_sysmips: |
| 1017 case __NR_unused150: | 1017 case __NR_unused150: |
| 1018 return true; | 1018 return true; |
| 1019 default: | 1019 default: |
| 1020 return false; | 1020 return false; |
| 1021 } | 1021 } |
| 1022 } | 1022 } |
| 1023 #endif // defined(__mips__) | 1023 #endif // defined(__mips__) |
| 1024 } // namespace sandbox. | 1024 } // namespace sandbox. |
| OLD | NEW |