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

Issue 10843042: Create a class for seccomp-bpf sandboxing in content. (Closed)

Created:
8 years, 4 months ago by jln (very slow on Chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jln+watch_chromium.org, Chris Evans
Visibility:
Public.

Description

Create a class for seccomp-bpf sandboxing in content. This adds a SandboxSeccompBpf class to centralize Seccomp BPF sandbox policies inside of content/ LinuxSandbox is the only user of this class and Linux sandboxing is now fully unified through LinuxSandbox. BUG= NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149738

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Correct typo. #

Total comments: 2

Patch Set 4 : Fix typo. #

Total comments: 9

Patch Set 5 : Address comments from Antoine. #

Patch Set 6 : Rebase on top of tree. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -661 lines) Patch
M content/browser/zygote_host/zygote_host_impl_linux.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/sandbox_init_linux.cc View 1 2 3 4 1 chunk +17 lines, -544 lines 0 comments Download
M content/common/sandbox_linux.h View 1 2 3 chunks +13 lines, -10 lines 0 comments Download
M content/common/sandbox_linux.cc View 1 2 3 4 5 9 chunks +73 lines, -27 lines 0 comments Download
A content/common/sandbox_seccomp_bpf_linux.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A + content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 6 chunks +44 lines, -80 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jln (very slow on Chromium)
This is the next step towards a unified LinuxSandbox class. We create a new class ...
8 years, 4 months ago (2012-08-02 05:20:59 UTC) #1
Markus (顧孟勤)
lgtm https://chromiumcodereview.appspot.com/10843042/diff/5009/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/5009/content/common/sandbox_linux.cc#newcode173 content/common/sandbox_linux.cc:173: base::Time::UnixEpoch()); A stat() call makes much more sense ...
8 years, 4 months ago (2012-08-02 20:39:13 UTC) #2
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10843042/diff/5009/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/5009/content/common/sandbox_linux.cc#newcode173 content/common/sandbox_linux.cc:173: base::Time::UnixEpoch()); On 2012/08/02 20:39:13, Markus (顧孟勤) wrote: > A ...
8 years, 4 months ago (2012-08-02 20:50:40 UTC) #3
jln (very slow on Chromium)
Antoine, would you mind approving this as content/ owner?
8 years, 4 months ago (2012-08-02 20:55:27 UTC) #4
Jorge Lucangeli Obes
LGTM but if you can fix the typo, better. https://chromiumcodereview.appspot.com/10843042/diff/8002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/8002/content/common/sandbox_seccomp_bpf_linux.cc#newcode515 content/common/sandbox_seccomp_bpf_linux.cc:515: ...
8 years, 4 months ago (2012-08-02 21:04:12 UTC) #5
jln (very slow on Chromium)
Thanks. https://chromiumcodereview.appspot.com/10843042/diff/8002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/8002/content/common/sandbox_seccomp_bpf_linux.cc#newcode515 content/common/sandbox_seccomp_bpf_linux.cc:515: // TODO(jln): pass the savec proc_fd_ from the ...
8 years, 4 months ago (2012-08-02 21:06:57 UTC) #6
piman
LGTM+nits https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_init_linux.cc#newcode22 content/common/sandbox_init_linux.cc:22: switches::kProcessType); nit: indent (switches should be at +4) ...
8 years, 4 months ago (2012-08-02 21:40:04 UTC) #7
jln (very slow on Chromium)
Thanks! https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_init_linux.cc#newcode22 content/common/sandbox_init_linux.cc:22: switches::kProcessType); On 2012/08/02 21:40:04, piman wrote: > nit: ...
8 years, 4 months ago (2012-08-02 22:20:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10843042/4012
8 years, 4 months ago (2012-08-02 22:23:47 UTC) #9
commit-bot: I haz the power
Failed to apply patch for content/common/sandbox_seccomp_bpf_linux.cc: While running patch -p1 --forward --force; patching file content/common/sandbox_seccomp_bpf_linux.cc ...
8 years, 4 months ago (2012-08-02 22:23:50 UTC) #10
piman
lgtm https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/10843042/diff/14002/content/common/sandbox_linux.cc#newcode161 content/common/sandbox_linux.cc:161: // but only if it can be attempted. ...
8 years, 4 months ago (2012-08-02 22:24:40 UTC) #11
jln (very slow on Chromium)
On 2012/08/02 22:24:40, piman wrote: > Ok, as you wish. My point is just that ...
8 years, 4 months ago (2012-08-02 22:28:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10843042/4012
8 years, 4 months ago (2012-08-02 22:42:04 UTC) #13
commit-bot: I haz the power
Failed to apply patch for content/common/sandbox_seccomp_bpf_linux.cc: While running patch -p1 --forward --force; patching file content/common/sandbox_seccomp_bpf_linux.cc ...
8 years, 4 months ago (2012-08-02 22:42:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10843042/4012
8 years, 4 months ago (2012-08-02 23:19:40 UTC) #15
commit-bot: I haz the power
Failed to apply patch for content/common/sandbox_linux.cc: While running patch -p1 --forward --force; patching file content/common/sandbox_linux.cc ...
8 years, 4 months ago (2012-08-02 23:19:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10843042/4014
8 years, 4 months ago (2012-08-02 23:26:31 UTC) #17
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 23:27:27 UTC) #18
Change committed as 149738

Powered by Google App Engine
This is Rietveld 408576698