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 <pthread.h> | 7 #include <pthread.h> |
8 #include <sched.h> | 8 #include <sched.h> |
9 #include <setjmp.h> | 9 #include <setjmp.h> |
10 #include <sys/resource.h> | 10 #include <sys/resource.h> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return syscall(__NR_seccomp, operation, flags, args); | 70 return syscall(__NR_seccomp, operation, flags, args); |
71 } | 71 } |
72 | 72 |
73 int sys_prlimit64(pid_t pid, | 73 int sys_prlimit64(pid_t pid, |
74 int resource, | 74 int resource, |
75 const struct rlimit64* new_limit, | 75 const struct rlimit64* new_limit, |
76 struct rlimit64* old_limit) { | 76 struct rlimit64* old_limit) { |
77 return syscall(__NR_prlimit64, pid, resource, new_limit, old_limit); | 77 return syscall(__NR_prlimit64, pid, resource, new_limit, old_limit); |
78 } | 78 } |
79 | 79 |
| 80 int sys_capget(cap_hdr* hdrp, cap_data* datap) { |
| 81 return syscall(__NR_capget, hdrp, datap); |
| 82 } |
| 83 |
| 84 int sys_capset(cap_hdr* hdrp, const cap_data* datap) { |
| 85 return syscall(__NR_capset, hdrp, datap); |
| 86 } |
| 87 |
80 } // namespace sandbox | 88 } // namespace sandbox |
OLD | NEW |