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

Issue 269303002: Linux sandbox: implement new BPF testing macros (Closed)

Created:
6 years, 7 months ago by jln (very slow on Chromium)
Modified:
6 years, 7 months ago
Reviewers:
mdempsky
CC:
chromium-reviews, agl, jln+watch_chromium.org
Visibility:
Public.

Description

Linux sandbox: implement new BPF testing macros Implement new BPF_TEST_C and BPF_TEST_D macros to allow writing new BPF tests without using the deprecated "BPF policies as function pointers". BUG=368970 R=mdempsky@chromium.org TBR=jorgelo Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268668

Patch Set 1 #

Total comments: 8

Patch Set 2 : Re-order macros, tweak comments. #

Patch Set 3 : Better comments. #

Patch Set 4 : Make sure that policies are created and destroyed in the same process. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -110 lines) Patch
M sandbox/linux/sandbox_linux.gypi View 1 chunk +2 lines, -1 line 0 comments Download
A sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h View 1 1 chunk +81 lines, -0 lines 0 comments Download
A + sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 1 2 1 chunk +87 lines, -80 lines 0 comments Download
D sandbox/linux/seccomp-bpf/bpf_tests.cc View 1 chunk +0 lines, -21 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc View 1 2 3 2 chunks +70 lines, -5 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
jln (very slow on Chromium)
Matthew, could you please take a look? There is very little new code :) https://codereview.chromium.org/269303002/diff/1/sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h ...
6 years, 7 months ago (2014-05-07 00:25:10 UTC) #1
mdempsky
lgtm https://codereview.chromium.org/269303002/diff/1/sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h File sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h (right): https://codereview.chromium.org/269303002/diff/1/sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h#newcode20 sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h:20: // This templated class allows to build a ...
6 years, 7 months ago (2014-05-07 00:57:39 UTC) #2
jln (very slow on Chromium)
Thanks. I re-ordered the macros and tweaked the comments a little. Feel free to take ...
6 years, 7 months ago (2014-05-07 01:07:37 UTC) #3
jln (very slow on Chromium)
Matthew: the last patchset adds assertion that the policy is created and used in the ...
6 years, 7 months ago (2014-05-07 01:42:05 UTC) #4
mdempsky
lgtm
6 years, 7 months ago (2014-05-07 02:18:34 UTC) #5
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 7 months ago (2014-05-07 04:39:02 UTC) #6
jln (very slow on Chromium)
6 years, 7 months ago (2014-05-07 04:41:48 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r268668 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698