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

Issue 12223109: SECCOMP-BPF: Refactor the BPF sandbox API to use fewer "static" fields and methods. (Closed)

Created:
7 years, 10 months ago by Markus (顧孟勤)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, agl, jln+watch_chromium.org
Visibility:
Public.

Description

SECCOMP-BPF: Refactor the BPF sandbox API to use objects rather than "static" methods. This change allows us to stack multiple instances of the sandbox. Also, split up headers in a generally saner fashion. BUG=130662 TEST=sandbox_linux_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184541

Patch Set 1 : #

Patch Set 2 : Added include statement for compilation on ARM #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase (now, that the bitmask change has landed in the tree) #

Total comments: 4

Patch Set 5 : Make sure unnamed namespaces are always top-level #

Total comments: 6

Patch Set 6 : Addressed jln's comments #

Patch Set 7 : Rebased #

Patch Set 8 : Fixed unittest #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1116 lines, -1025 lines) Patch
M content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 4 5 6 7 8 9 chunks +45 lines, -35 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/Makefile View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/demo.cc View 1 2 3 4 5 13 chunks +122 lines, -21 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.h View 1 2 3 4 chunks +15 lines, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.cc View 1 chunk +2 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode_unittest.cc View 3 chunks +14 lines, -10 lines 0 comments Download
A sandbox/linux/seccomp-bpf/linux_seccomp.h View 1 2 1 chunk +197 lines, -0 lines 0 comments Download
A sandbox/linux/seccomp-bpf/port.h View 1 chunk +36 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 1 2 3 4 5 9 chunks +73 lines, -300 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 4 19 chunks +223 lines, -161 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 2 3 4 5 6 7 35 chunks +154 lines, -101 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.cc View 1 chunk +2 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.h View 1 chunk +6 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/util.h View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
M sandbox/linux/seccomp-bpf/util.cc View 1 2 3 4 5 1 chunk +0 lines, -164 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.h View 1 2 3 3 chunks +2 lines, -37 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 1 2 3 4 11 chunks +196 lines, -161 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Markus (顧孟勤)
Hi Julien, I think this CL is now ready for reviews. I refactored a good ...
7 years, 10 months ago (2013-02-13 22:03:27 UTC) #1
jln (very slow on Chromium)
This is very exciting! Very quick, high level comment: Please try to keep a real ...
7 years, 10 months ago (2013-02-15 20:58:24 UTC) #2
jln (very slow on Chromium)
I've been dragged to other things until now and I'm exhausted. I'll take a look ...
7 years, 10 months ago (2013-02-16 06:53:04 UTC) #3
jln (very slow on Chromium)
This is definitely going in the right direction! Looks pretty good in general. The Sandbox ...
7 years, 10 months ago (2013-02-20 01:35:49 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 10 months ago (2013-02-20 08:27:04 UTC) #5
Markus (顧孟勤)
PTAL I guess, I didn't have an official LGTM, yet. Made all the changes that ...
7 years, 10 months ago (2013-02-20 08:38:57 UTC) #6
Markus (顧孟勤)
Ah, I shouldn't have listened to you :-) There was a reason why the unittest ...
7 years, 10 months ago (2013-02-20 09:59:42 UTC) #7
jln (very slow on Chromium)
lgtm, but please try to check with me before landing. I would like to make ...
7 years, 10 months ago (2013-02-22 00:39:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markus@chromium.org/12223109/53007
7 years, 10 months ago (2013-02-25 20:15:34 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 01:39:41 UTC) #10
Message was sent while issue was closed.
Change committed as 184541

Powered by Google App Engine
This is Rietveld 408576698