|
Linux sandbox: start adding syscall wrappers
Add some syscall wrappers instead of calling syscall() inline.
This adds some type safety and will make it easier to switch the
underlying syscall implementation.
This fixes a few issues with SYS_CLONE being called with the wrong number of
parameters.
BUG= 435194
Committed: https://crrev.com/610a4a61dd805269d0cbe4b3435a7082f51e02cb
Cr-Commit-Position: refs/heads/master@{#305051}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+114 lines, -30 lines) |
Patch |
 |
M |
sandbox/linux/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc
|
View
|
|
6 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/sandbox_linux.gypi
|
View
|
1
2
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/sandbox_linux_test_sources.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
|
View
|
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
View
|
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/seccomp-bpf/sandbox_bpf.cc
|
View
|
1
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/services/credentials.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sandbox/linux/services/scoped_process.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
sandbox/linux/services/syscall_wrappers.h
|
View
|
|
1 chunk |
+33 lines, -0 lines |
2 comments
|
Download
|
 |
A |
sandbox/linux/services/syscall_wrappers.cc
|
View
|
1
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sandbox/linux/services/unix_domain_socket_unittest.cc
|
View
|
|
5 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
Total messages: 8 (2 generated)
|