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

Issue 11411254: SECCOMP-BPF: Added supported for inspection system call arguments from BPF filters. (Closed)

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

Description

SECCOMP-BPF: Added supported for inspection system call arguments from BPF filters. BUG=130662 TEST=sandbox_linux_unittests NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173243

Patch Set 1 : Changelist is ready for initial review; still needs a few TODO()s to be resolved, though. #

Total comments: 11

Patch Set 2 : Added support for 32bit and 64bit arguments #

Patch Set 3 : Addressed comments and fixed death tests #

Total comments: 14

Patch Set 4 : Addressed Julien's comments #

Patch Set 5 : Rebase #

Total comments: 1

Patch Set 6 : Another attempt at fixing the rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1034 lines, -295 lines) Patch
M content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 1 2 3 3 chunks +22 lines, -13 lines 0 comments Download
M sandbox/linux/seccomp-bpf/demo.cc View 1 2 3 5 chunks +72 lines, -63 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 1 2 3 12 chunks +109 lines, -56 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 30 chunks +180 lines, -108 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 2 3 4 14 chunks +395 lines, -15 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.h View 2 chunks +1 line, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/util.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/util.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 1 2 chunks +86 lines, -3 lines 0 comments Download
M sandbox/linux/tests/unit_tests.h View 1 2 3 2 chunks +69 lines, -7 lines 0 comments Download
M sandbox/linux/tests/unit_tests.cc View 1 2 3 chunks +79 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Markus (顧孟勤)
Julien, this CL is not 100% done, but it is close to finished. There are ...
8 years ago (2012-12-05 10:42:19 UTC) #1
jln (very slow on Chromium)
I glanced at it (except the unit test) and this look pretty good. I've very ...
8 years ago (2012-12-06 00:35:00 UTC) #2
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc File sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc (right): https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc#newcode488 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc:488: class EqualityStressTest { I didn't read this yet. But ...
8 years ago (2012-12-06 01:48:12 UTC) #3
Markus (顧孟勤)
I still need to address your initial comments, and I need to break out the ...
8 years ago (2012-12-12 02:43:18 UTC) #4
jln (very slow on Chromium)
Didn't have time to look yet. But could you look into EqualityArgumentUnallowed64bit failing on linux_rel ...
8 years ago (2012-12-12 19:25:26 UTC) #5
Markus (顧孟勤)
https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode715 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:715: // CPU registers. I am almost certain this is ...
8 years ago (2012-12-12 20:54:35 UTC) #6
Jorge Lucangeli Obes
On 2012/12/12 20:54:35, Markus (顧孟勤) wrote: > https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc > File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): > > https://chromiumcodereview.appspot.com/11411254/diff/2001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode715 ...
8 years ago (2012-12-14 02:11:04 UTC) #7
jln (very slow on Chromium)
Looks good in general, with a few nits. I didn't look deep into everything yet, ...
8 years ago (2012-12-14 02:28:02 UTC) #8
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/11411254/diff/30001/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/11411254/diff/30001/content/common/sandbox_seccomp_bpf_linux.cc#newcode1406 content/common/sandbox_seccomp_bpf_linux.cc:1406: Sandbox::startSandbox(); You missed renaming these.
8 years ago (2012-12-14 23:33:12 UTC) #9
jln (very slow on Chromium)
lgtm Let's land this and we can iterate on some of the details later.
8 years ago (2012-12-14 23:42:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markus@chromium.org/11411254/18008
8 years ago (2012-12-15 00:21:23 UTC) #11
commit-bot: I haz the power
8 years ago (2012-12-15 00:34:55 UTC) #12
Message was sent while issue was closed.
Change committed as 173243

Powered by Google App Engine
This is Rietveld 408576698