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

Issue 14411008: Linux sandbox: more paranoid checks (Closed)

Created:
7 years, 7 months ago by jln (very slow on Chromium)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jln+watch_chromium.org, Markus (顧孟勤)
Visibility:
Public.

Description

Linux sandbox: more paranoid checks at initialization We're worried that InitializeSandbox() will be called multithreaded, so we make sure to keep a file descriptor to /proc around, in Debug mode, to be able to count threads. Now that seccomp-legacy has been removed, we also simplify the code around pre-initialization. BUG=162334 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197520

Patch Set 1 : #

Patch Set 2 : Don't assume that DCHECK will only trigger in debug mode. #

Total comments: 10

Patch Set 3 : Address comments #

Total comments: 14

Patch Set 4 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -66 lines) Patch
M content/common/sandbox_linux.h View 1 2 3 4 chunks +19 lines, -23 lines 0 comments Download
M content/common/sandbox_linux.cc View 1 2 8 chunks +57 lines, -36 lines 0 comments Download
M content/zygote/zygote_linux.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jln (very slow on Chromium)
Jorge: do you mind taking a look ? Markus: please rubberstamp once Jorge is done ...
7 years, 7 months ago (2013-04-30 00:10:30 UTC) #1
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/14411008/diff/16001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/14411008/diff/16001/content/common/sandbox_linux.cc#newcode130 content/common/sandbox_linux.cc:130: DCHECK(false) << error_message; So you're doing both the DCHECK ...
7 years, 7 months ago (2013-04-30 17:30:26 UTC) #2
jln (very slow on Chromium)
Thanks, PTAL! https://chromiumcodereview.appspot.com/14411008/diff/16001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/14411008/diff/16001/content/common/sandbox_linux.cc#newcode130 content/common/sandbox_linux.cc:130: DCHECK(false) << error_message; On 2013/04/30 17:30:27, Jorge ...
7 years, 7 months ago (2013-04-30 18:35:20 UTC) #3
Jorge Lucangeli Obes
lgtm
7 years, 7 months ago (2013-04-30 21:11:39 UTC) #4
palmer
Some nits and some pontification. https://chromiumcodereview.appspot.com/14411008/diff/21001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/14411008/diff/21001/content/common/sandbox_linux.cc#newcode266 content/common/sandbox_linux.cc:266: if (proc_fd_ >= 0) ...
7 years, 7 months ago (2013-04-30 21:21:59 UTC) #5
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/14411008/diff/21001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/14411008/diff/21001/content/common/sandbox_linux.cc#newcode266 content/common/sandbox_linux.cc:266: if (proc_fd_ >= 0) { On 2013/04/30 21:21:59, Chromium ...
7 years, 7 months ago (2013-04-30 22:09:50 UTC) #6
jln (very slow on Chromium)
Thanks Chris, PTAL!
7 years, 7 months ago (2013-04-30 22:10:15 UTC) #7
palmer
lgtm
7 years, 7 months ago (2013-04-30 22:15:56 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/14411008/30001
7 years, 7 months ago (2013-04-30 22:33:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/14411008/30001
7 years, 7 months ago (2013-04-30 23:49:19 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-01 00:04:19 UTC) #11
Message was sent while issue was closed.
Change committed as 197520

Powered by Google App Engine
This is Rietveld 408576698