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 #include "sandbox/linux/services/syscall_wrappers.h" | 5 #include "sandbox/linux/services/syscall_wrappers.h" |
6 | 6 |
7 #include <sys/syscall.h> | 7 #include <sys/syscall.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_MIPS64_FAMILY) | 49 defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_MIPS64_FAMILY) |
50 // CONFIG_CLONE_BACKWARDS defined. | 50 // CONFIG_CLONE_BACKWARDS defined. |
51 return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); | 51 return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); |
52 #endif | 52 #endif |
53 } | 53 } |
54 | 54 |
55 void sys_exit_group(int status) { | 55 void sys_exit_group(int status) { |
56 syscall(__NR_exit_group, status); | 56 syscall(__NR_exit_group, status); |
57 } | 57 } |
58 | 58 |
| 59 int sys_seccomp(unsigned int operation, |
| 60 unsigned int flags, |
| 61 const struct sock_fprog* args) { |
| 62 return syscall(__NR_seccomp, operation, flags, args); |
| 63 } |
| 64 |
59 } // namespace sandbox | 65 } // namespace sandbox |
OLD | NEW |