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

Issue 684993005: Linux sandbox: start adding syscall wrappers (Closed)

Created:
6 years, 1 month ago by jln (very slow on Chromium)
Modified:
6 years, 1 month ago
Reviewers:
mdempsky
CC:
chromium-reviews, jln+watch_chromium.org, hidehiko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : include syscall.h #

Patch Set 3 : More dependencies. #

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

Messages

Total messages: 8 (2 generated)
jln (very slow on Chromium)
Matthew: could you please take a look at this small cleanup CL?
6 years, 1 month ago (2014-11-11 08:02:53 UTC) #2
mdempsky
lgtm https://codereview.chromium.org/684993005/diff/40001/sandbox/linux/services/syscall_wrappers.h File sandbox/linux/services/syscall_wrappers.h (right): https://codereview.chromium.org/684993005/diff/40001/sandbox/linux/services/syscall_wrappers.h#newcode23 sandbox/linux/services/syscall_wrappers.h:23: SANDBOX_EXPORT long sys_clone(unsigned long flags, Most of the ...
6 years, 1 month ago (2014-11-20 00:31:43 UTC) #3
jln (very slow on Chromium)
https://codereview.chromium.org/684993005/diff/40001/sandbox/linux/services/syscall_wrappers.h File sandbox/linux/services/syscall_wrappers.h (right): https://codereview.chromium.org/684993005/diff/40001/sandbox/linux/services/syscall_wrappers.h#newcode23 sandbox/linux/services/syscall_wrappers.h:23: SANDBOX_EXPORT long sys_clone(unsigned long flags, On 2014/11/20 00:31:43, mdempsky ...
6 years, 1 month ago (2014-11-20 18:04:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684993005/40001
6 years, 1 month ago (2014-11-20 18:06:00 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-20 18:58:34 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 18:59:17 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/610a4a61dd805269d0cbe4b3435a7082f51e02cb
Cr-Commit-Position: refs/heads/master@{#305051}

Powered by Google App Engine
This is Rietveld 408576698