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

Issue 290223002: Remove SandboxBPF's dependency on CompatibilityPolicy (Closed)

Created:
6 years, 7 months ago by mdempsky
Modified:
6 years, 7 months ago
CC:
chromium-reviews, agl, jln+watch_chromium.org
Visibility:
Public.

Description

Remove SandboxBPF's dependency on CompatibilityPolicy SandboxBPF users are now required to always provide a SandboxBPFPolicy instead of a SyscallEvaluator. CompatibilityPolicy can't be removed just yet though because it's still used by the deprecated BPF_TEST macros. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271607

Patch Set 1 #

Patch Set 2 : Fix demo.cc #

Total comments: 2

Patch Set 3 : Add DISALLOW_COPY_AND_ASSIGN to policies #

Patch Set 4 : Need to add explicit default constructors too... #

Patch Set 5 : Two more missing default constructors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -104 lines) Patch
M sandbox/linux/seccomp-bpf/demo.cc View 1 2 3 3 chunks +15 lines, -2 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 3 chunks +1 line, -24 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 7 chunks +38 lines, -32 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 2 3 4 4 chunks +66 lines, -46 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mdempsky
Building on top of the previous CL to simplify SandboxBPF policies, this one converts some ...
6 years, 7 months ago (2014-05-16 22:38:07 UTC) #1
jln (very slow on Chromium)
lgtm, thanks for the lceanup! https://chromiumcodereview.appspot.com/290223002/diff/20001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://chromiumcodereview.appspot.com/290223002/diff/20001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode264 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:264: // would be needed ...
6 years, 7 months ago (2014-05-19 20:57:19 UTC) #2
mdempsky
https://chromiumcodereview.appspot.com/290223002/diff/20001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://chromiumcodereview.appspot.com/290223002/diff/20001/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode264 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:264: // would be needed to support threads. On 2014/05/19 ...
6 years, 7 months ago (2014-05-19 21:01:28 UTC) #3
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-19 21:01:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/290223002/20001
6 years, 7 months ago (2014-05-19 21:02:20 UTC) #5
mdempsky
The CQ bit was unchecked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-20 00:13:17 UTC) #6
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-20 00:21:17 UTC) #7
mdempsky
On 2014/05/20 00:21:17, mdempsky wrote: > The CQ bit was checked by mailto:mdempsky@chromium.org FYI, I ...
6 years, 7 months ago (2014-05-20 00:21:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/290223002/30001
6 years, 7 months ago (2014-05-20 00:21:53 UTC) #9
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-20 00:35:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/290223002/50001
6 years, 7 months ago (2014-05-20 00:36:23 UTC) #11
mdempsky
The CQ bit was unchecked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-20 00:40:35 UTC) #12
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-20 06:50:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/290223002/70001
6 years, 7 months ago (2014-05-20 06:51:48 UTC) #14
commit-bot: I haz the power
Change committed as 271607
6 years, 7 months ago (2014-05-20 07:25:13 UTC) #15
Ilya Sherman
A revert of this CL has been created in https://codereview.chromium.org/293993006/ by isherman@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-20 11:15:41 UTC) #16
earthdok
6 years, 7 months ago (2014-05-20 12:12:45 UTC) #17
Message was sent while issue was closed.
On 2014/05/20 11:15:41, Ilya Sherman wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/293993006/ by mailto:isherman@chromium.org.
> 
> The reason for reverting is: Broke VerboseAPITesting in
sandbox_linux_unittests
> on Linux:
>
http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests%....

FWIW MSan reported an uninit in that test:

http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20MSan/bui...

Powered by Google App Engine
This is Rietveld 408576698