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 #ifndef SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ | 5 #ifndef SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ |
6 #define SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ | 6 #define SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
| 11 #include "sandbox/linux/system_headers/linux_signal.h" |
11 #include "sandbox/sandbox_export.h" | 12 #include "sandbox/sandbox_export.h" |
12 | 13 |
13 struct sock_fprog; | 14 struct sock_fprog; |
14 struct rlimit64; | 15 struct rlimit64; |
15 struct cap_hdr; | 16 struct cap_hdr; |
16 struct cap_data; | 17 struct cap_data; |
17 | 18 |
18 namespace sandbox { | 19 namespace sandbox { |
19 | 20 |
20 // Provide direct system call wrappers for a few common system calls. | 21 // Provide direct system call wrappers for a few common system calls. |
(...skipping 28 matching lines...) Expand all Loading... |
49 int resource, | 50 int resource, |
50 const struct rlimit64* new_limit, | 51 const struct rlimit64* new_limit, |
51 struct rlimit64* old_limit); | 52 struct rlimit64* old_limit); |
52 | 53 |
53 // Some libcs do not expose capget/capset wrappers. We want to use these | 54 // Some libcs do not expose capget/capset wrappers. We want to use these |
54 // directly in order to avoid pulling in libcap2. | 55 // directly in order to avoid pulling in libcap2. |
55 SANDBOX_EXPORT int sys_capget(struct cap_hdr* hdrp, struct cap_data* datap); | 56 SANDBOX_EXPORT int sys_capget(struct cap_hdr* hdrp, struct cap_data* datap); |
56 SANDBOX_EXPORT int sys_capset(struct cap_hdr* hdrp, | 57 SANDBOX_EXPORT int sys_capset(struct cap_hdr* hdrp, |
57 const struct cap_data* datap); | 58 const struct cap_data* datap); |
58 | 59 |
| 60 // Some libcs do not expose sigprocmask/sigaction wrappers. |
| 61 SANDBOX_EXPORT int sys_sigprocmask(int how, const linux_sigset_t* set, |
| 62 linux_sigset_t* oldset); |
| 63 SANDBOX_EXPORT int sys_sigaction(int signum, const struct linux_sigaction* act, |
| 64 struct linux_sigaction* oldact); |
| 65 |
59 } // namespace sandbox | 66 } // namespace sandbox |
60 | 67 |
61 #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ | 68 #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ |
OLD | NEW |