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

Issue 180783019: [Android] Define a baseline seccomp-bpf sandbox policy. (Closed)

Created:
6 years, 9 months ago by Robert Sesek
Modified:
6 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, agl, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Define a baseline seccomp-bpf sandbox policy. This is not used in production yet, since Android kernels do not have seccomp mode two support, yet. BUG=308763, 166704 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263017

Patch Set 1 #

Total comments: 7

Patch Set 2 : Move to //content #

Total comments: 17

Patch Set 3 : Rebase & address comments #

Total comments: 4

Patch Set 4 : More moves, nits #

Total comments: 2

Patch Set 5 : Fun With Flags! #

Total comments: 6

Patch Set 6 : Address comments, remove warmup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -1 line) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/sandbox_linux/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_android.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Robert Sesek
https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode98 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:98: return true; Obviously these cannot go in as-is. I ...
6 years, 9 months ago (2014-03-05 18:27:54 UTC) #1
jln (very slow on Chromium)
Wow, this is looking pretty great! Can you confirm that it was tested with the ...
6 years, 9 months ago (2014-03-07 01:30:30 UTC) #2
Robert Sesek
https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.cc File sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.cc (right): https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.cc#newcode24 sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.cc:24: case __NR_open: On 2014/03/07 01:30:30, jln wrote: > Very ...
6 years, 9 months ago (2014-03-25 21:57:17 UTC) #3
jln (very slow on Chromium)
https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode98 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:98: return true; On 2014/03/25 21:57:17, rsesek wrote: > On ...
6 years, 8 months ago (2014-03-31 19:22:32 UTC) #4
Robert Sesek
https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc File sandbox/linux/seccomp-bpf/sandbox_bpf.cc (right): https://codereview.chromium.org/180783019/diff/1/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#newcode98 sandbox/linux/seccomp-bpf/sandbox_bpf.cc:98: return true; On 2014/03/31 19:22:32, jln wrote: > On ...
6 years, 8 months ago (2014-03-31 19:45:50 UTC) #5
Robert Sesek
OK this is ready for another review. PTAL.
6 years, 8 months ago (2014-03-31 22:19:45 UTC) #6
jln (very slow on Chromium)
Shouldn't we land patches to sandbox/ before landing this? It's a bit weird to land ...
6 years, 8 months ago (2014-03-31 22:57:43 UTC) #7
Robert Sesek
On 2014/03/31 22:57:43, jln wrote: > Shouldn't we land patches to sandbox/ before landing this? ...
6 years, 8 months ago (2014-04-01 18:37:35 UTC) #8
Robert Sesek
Rebased on top of the sandbox API changes. https://codereview.chromium.org/180783019/diff/50001/content/common/android/sandbox_bpf_base_policy_android.cc File content/common/android/sandbox_bpf_base_policy_android.cc (right): https://codereview.chromium.org/180783019/diff/50001/content/common/android/sandbox_bpf_base_policy_android.cc#newcode25 content/common/android/sandbox_bpf_base_policy_android.cc:25: case ...
6 years, 8 months ago (2014-04-08 20:33:44 UTC) #9
jln (very slow on Chromium)
lgtm, but please consider unifying the command line flags. https://chromiumcodereview.appspot.com/180783019/diff/50001/content/content_common.gypi File content/content_common.gypi (right): https://chromiumcodereview.appspot.com/180783019/diff/50001/content/content_common.gypi#newcode135 content/content_common.gypi:135: ...
6 years, 8 months ago (2014-04-09 05:11:07 UTC) #10
jln (very slow on Chromium)
Addendum: could you make sure that yourself + the current sandbox_linux owners are OWNERS of ...
6 years, 8 months ago (2014-04-09 05:36:13 UTC) #11
Robert Sesek
https://chromiumcodereview.appspot.com/180783019/diff/50001/content/content_common.gypi File content/content_common.gypi (right): https://chromiumcodereview.appspot.com/180783019/diff/50001/content/content_common.gypi#newcode135 content/content_common.gypi:135: 'common/android/sandbox_bpf_base_policy_android.cc', On 2014/04/09 05:11:07, jln wrote: > On 2014/04/08 ...
6 years, 8 months ago (2014-04-09 21:00:57 UTC) #12
jln (very slow on Chromium)
Still lgtm, but still having a slight preference for --enable-seccomp-filter-sandbox https://chromiumcodereview.appspot.com/180783019/diff/70001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://chromiumcodereview.appspot.com/180783019/diff/70001/content/public/common/content_switches.cc#newcode361 ...
6 years, 8 months ago (2014-04-09 21:56:19 UTC) #13
Robert Sesek
+jochen for content OWNERS https://chromiumcodereview.appspot.com/180783019/diff/70001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://chromiumcodereview.appspot.com/180783019/diff/70001/content/public/common/content_switches.cc#newcode361 content/public/common/content_switches.cc:361: const char kEnableAndroidSeccompBPF[] = "enable-android-seccomp-bpf"; ...
6 years, 8 months ago (2014-04-09 22:07:54 UTC) #14
jochen (gone - plz use gerrit)
https://codereview.chromium.org/180783019/diff/110001/content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc File content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc (right): https://codereview.chromium.org/180783019/diff/110001/content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc#newcode34 content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc:34: #if !defined(__aarch64__) should be ARCH_CPU_ARM64 https://codereview.chromium.org/180783019/diff/110001/content/renderer/renderer_main_platform_delegate_android.cc File content/renderer/renderer_main_platform_delegate_android.cc (right): ...
6 years, 8 months ago (2014-04-10 07:37:42 UTC) #15
Robert Sesek
https://codereview.chromium.org/180783019/diff/110001/content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc File content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc (right): https://codereview.chromium.org/180783019/diff/110001/content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc#newcode34 content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc:34: #if !defined(__aarch64__) On 2014/04/10 07:37:42, jochen wrote: > should ...
6 years, 8 months ago (2014-04-10 14:36:23 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 8 months ago (2014-04-10 14:44:09 UTC) #17
Robert Sesek
The CQ bit was checked by rsesek@chromium.org
6 years, 8 months ago (2014-04-10 14:45:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/180783019/130001
6 years, 8 months ago (2014-04-10 14:46:01 UTC) #19
commit-bot: I haz the power
Change committed as 263017
6 years, 8 months ago (2014-04-10 17:04:40 UTC) #20
gordanac
There is something wrong with this change, as seccomp related header files are included even ...
6 years, 8 months ago (2014-04-11 17:04:51 UTC) #21
Robert Sesek
6 years, 8 months ago (2014-04-11 17:13:37 UTC) #22
Message was sent while issue was closed.
On 2014/04/11 17:04:51, gordanac wrote:
> There is something wrong with this change, as seccomp related header files are
> included even for platforms which do not include support for seccomp (such as
> MIPS).
> 
> This is breaking Chromium Android build for such platforms.
> 
> For more details please see:
>
http://www.rt-rk.com/mips-buildbot/builders/Release_build/builds/189/steps/Bu...

That is being tracked at
http://code.google.com/p/chromium/issues/detail?id=362357.

Powered by Google App Engine
This is Rietveld 408576698