Lines 46-56
Link Here
|
46 |
#define SB_SAFE_OPEN_CHAR(_path, _mode) \ |
46 |
#define SB_SAFE_OPEN_CHAR(_path, _mode) \ |
47 |
SB_SAFE_OPEN_CHAR_AT(AT_FDCWD, _path, _mode) |
47 |
SB_SAFE_OPEN_CHAR_AT(AT_FDCWD, _path, _mode) |
48 |
|
48 |
|
|
|
49 |
#define _SB_SAFE_FD(_nr, _name, _fd) \ |
50 |
__SB_SAFE(before_syscall_fd(_nr, _name, fd)) |
51 |
#define SB_SAFE_FD(_fd) \ |
52 |
_SB_SAFE_FD(WRAPPER_NR, STRING_NAME, _fd) |
53 |
|
49 |
bool is_sandbox_on(void); |
54 |
bool is_sandbox_on(void); |
50 |
bool before_syscall(int, int, const char *, const char *, int); |
55 |
bool before_syscall(int, int, const char *, const char *, int); |
51 |
bool before_syscall_access(int, int, const char *, const char *, int); |
56 |
bool before_syscall_access(int, int, const char *, const char *, int); |
52 |
bool before_syscall_open_int(int, int, const char *, const char *, int); |
57 |
bool before_syscall_open_int(int, int, const char *, const char *, int); |
53 |
bool before_syscall_open_char(int, int, const char *, const char *, const char *); |
58 |
bool before_syscall_open_char(int, int, const char *, const char *, const char *); |
|
|
59 |
bool before_syscall_fd(int, const char *, int); |
54 |
|
60 |
|
55 |
void *get_dlsym(const char *symname, const char *symver); |
61 |
void *get_dlsym(const char *symname, const char *symver); |
56 |
|
62 |
|