Lines 46-51
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 |
/* Symbols that don't exist in the C library will be <= this value. */ |
54 |
/* Symbols that don't exist in the C library will be <= this value. */ |
50 |
#define SB_NR_UNDEF -99999 |
55 |
#define SB_NR_UNDEF -99999 |
51 |
#define SB_NR_IS_DEFINED(nr) (nr > SB_NR_UNDEF) |
56 |
#define SB_NR_IS_DEFINED(nr) (nr > SB_NR_UNDEF) |
Lines 55-60
bool before_syscall(int, int, const char *, const char *, int);
Link Here
|
55 |
bool before_syscall_access(int, int, const char *, const char *, int); |
60 |
bool before_syscall_access(int, int, const char *, const char *, int); |
56 |
bool before_syscall_open_int(int, int, const char *, const char *, int); |
61 |
bool before_syscall_open_int(int, int, const char *, const char *, int); |
57 |
bool before_syscall_open_char(int, int, const char *, const char *, const char *); |
62 |
bool before_syscall_open_char(int, int, const char *, const char *, const char *); |
|
|
63 |
bool before_syscall_fd(int, const char *, int); |
64 |
|
58 |
enum sandbox_method_t get_sandbox_method(void); |
65 |
enum sandbox_method_t get_sandbox_method(void); |
59 |
|
66 |
|
60 |
void *get_dlsym(const char *symname, const char *symver); |
67 |
void *get_dlsym(const char *symname, const char *symver); |