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

Side by Side Diff: sandbox/linux/services/syscall_wrappers.h

Issue 1093843002: Revert of Introduce sys_sigprocmask and sys_sigaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « sandbox/linux/services/credentials.cc ('k') | sandbox/linux/services/syscall_wrappers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 <signal.h>
9 #include <stdint.h> 8 #include <stdint.h>
10 #include <sys/types.h> 9 #include <sys/types.h>
11 10
12 #include "sandbox/sandbox_export.h" 11 #include "sandbox/sandbox_export.h"
13 12
14 struct sock_fprog; 13 struct sock_fprog;
15 struct rlimit64; 14 struct rlimit64;
16 struct cap_hdr; 15 struct cap_hdr;
17 struct cap_data; 16 struct cap_data;
18 17
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Some libcs do not expose getresuid/getresgid wrappers. 59 // Some libcs do not expose getresuid/getresgid wrappers.
61 SANDBOX_EXPORT int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid); 60 SANDBOX_EXPORT int sys_getresuid(uid_t* ruid, uid_t* euid, uid_t* suid);
62 SANDBOX_EXPORT int sys_getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid); 61 SANDBOX_EXPORT int sys_getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid);
63 62
64 // Some libcs do not expose a chroot wrapper. 63 // Some libcs do not expose a chroot wrapper.
65 SANDBOX_EXPORT int sys_chroot(const char* path); 64 SANDBOX_EXPORT int sys_chroot(const char* path);
66 65
67 // Some libcs do not expose a unshare wrapper. 66 // Some libcs do not expose a unshare wrapper.
68 SANDBOX_EXPORT int sys_unshare(int flags); 67 SANDBOX_EXPORT int sys_unshare(int flags);
69 68
70 // Some libcs do not expose a sigprocmask. Note that oldset must be a nullptr,
71 // because of some ABI gap between toolchain's and Linux's.
72 SANDBOX_EXPORT int sys_sigprocmask(int how,
73 const sigset_t* set,
74 decltype(nullptr) oldset);
75
76 // Some libcs do not expose a sigaction().
77 SANDBOX_EXPORT int sys_sigaction(int signum,
78 const struct sigaction* act,
79 struct sigaction* oldact);
80
81 } // namespace sandbox 69 } // namespace sandbox
82 70
83 #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_ 71 #endif // SANDBOX_LINUX_SERVICES_SYSCALL_WRAPPERS_H_
OLDNEW
« no previous file with comments | « sandbox/linux/services/credentials.cc ('k') | sandbox/linux/services/syscall_wrappers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698