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

Issue 935743003: bpf_dsl: move Verifier into PolicyCompiler (Closed)

Created:
5 years, 10 months ago by mdempsky
Modified:
5 years, 9 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bpf_dsl: move Verifier into PolicyCompiler This makes it easier to run verification within bpf_dsl_unittests too, though it also exposes that FakeTrapRegistry was being sloppy by not reusing trap IDs when a trap handler is assigned a second time. BUG=449357 Committed: https://crrev.com/5953fcd58676131a348132b8058981c1ccf084c8 Cr-Commit-Position: refs/heads/master@{#319683}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Respond to jln feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -526 lines) Patch
M sandbox/linux/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc View 1 4 chunks +39 lines, -6 lines 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.cc View 3 chunks +15 lines, -1 line 0 comments Download
A + sandbox/linux/bpf_dsl/verifier.h View 3 chunks +5 lines, -4 lines 0 comments Download
A + sandbox/linux/bpf_dsl/verifier.cc View 1 10 chunks +24 lines, -31 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 2 chunks +2 lines, -21 lines 0 comments Download
D sandbox/linux/seccomp-bpf/verifier.h View 1 chunk +0 lines, -56 lines 0 comments Download
D sandbox/linux/seccomp-bpf/verifier.cc View 1 chunk +0 lines, -402 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
mdempsky
5 years, 10 months ago (2015-02-20 07:37:38 UTC) #2
jln (very slow on Chromium)
lgtm https://chromiumcodereview.appspot.com/935743003/diff/1/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc File sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc (right): https://chromiumcodereview.appspot.com/935743003/diff/1/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc#newcode100 sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc:100: FakeTrapRegistry traps; Maybe add a comment: run twice ...
5 years, 10 months ago (2015-02-21 01:48:48 UTC) #3
mdempsky
https://codereview.chromium.org/935743003/diff/1/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc File sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc (right): https://codereview.chromium.org/935743003/diff/1/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc#newcode100 sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc:100: FakeTrapRegistry traps; On 2015/02/21 01:48:48, jln wrote: > Maybe ...
5 years, 10 months ago (2015-02-23 03:54:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935743003/20001
5 years, 10 months ago (2015-02-23 03:55:19 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61460)
5 years, 10 months ago (2015-02-23 03:58:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935743003/20001
5 years, 9 months ago (2015-03-09 16:36:45 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-09 18:06:29 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 18:06:57 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5953fcd58676131a348132b8058981c1ccf084c8
Cr-Commit-Position: refs/heads/master@{#319683}

Powered by Google App Engine
This is Rietveld 408576698