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

Issue 24055003: add a LinuxSandbox::HasOpenDirectories() sanity check (Closed)

Created:
7 years, 3 months ago by Mostyn Bramley-Moore
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jln+watch_chromium.org
Visibility:
Public.

Description

add a LinuxSandbox::HasOpenDirectories() sanity check BUG=269806 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233100

Patch Set 1 #

Total comments: 19

Patch Set 2 : try to be more careful #

Total comments: 30

Patch Set 3 : simply compare fd's #

Total comments: 12

Patch Set 4 : remove OpenProc etc #

Total comments: 6

Patch Set 5 : fix final nits #

Patch Set 6 : test: guess false if we can't open /proc/self/fd regardless of errno #

Total comments: 2

Patch Set 7 : leave TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -0 lines) Patch
M content/common/sandbox_linux.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/sandbox_linux.cc View 1 2 3 4 5 6 5 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Mostyn Bramley-Moore
This patch adds a sanity check suggested by jln in bug 269806. But as far ...
7 years, 3 months ago (2013-09-07 22:39:12 UTC) #1
Mostyn Bramley-Moore
*ping*
7 years, 2 months ago (2013-10-21 08:15:04 UTC) #2
jln (very slow on Chromium)
Thanks for the ping Mostyn, and sorry this took so long! Thanks for working on ...
7 years, 2 months ago (2013-10-22 01:10:49 UTC) #3
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc#newcode253 content/common/sandbox_linux.cc:253: // We had to open /proc/self/fd/ so we really ...
7 years, 2 months ago (2013-10-22 19:10:04 UTC) #4
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc#newcode149 content/common/sandbox_linux.cc:149: LOG(ERROR) << "InitializeSandbox() called after unexpected directries " On ...
7 years, 2 months ago (2013-10-23 23:15:19 UTC) #5
jln (very slow on Chromium)
Sorry for the delay. I didn't look at everything in detail yet. Lots of remarks, ...
7 years, 1 month ago (2013-10-25 19:49:51 UTC) #6
jln (very slow on Chromium)
On 2013/10/22 19:10:04, Mostyn Bramley-Moore wrote: > https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc > File content/common/sandbox_linux.cc (right): > > https://codereview.chromium.org/24055003/diff/1/content/common/sandbox_linux.cc#newcode253 ...
7 years, 1 month ago (2013-10-25 19:55:30 UTC) #7
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc#newcode108 content/common/sandbox_linux.cc:108: On 2013/10/25 19:49:52, jln wrote: > FYI (since this ...
7 years, 1 month ago (2013-10-25 20:41:14 UTC) #8
jln (very slow on Chromium)
https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc#newcode286 content/common/sandbox_linux.cc:286: if (proc_fd_ >= 0) { On 2013/10/25 20:41:15, Mostyn ...
7 years, 1 month ago (2013-10-26 01:15:14 UTC) #9
Mostyn Bramley-Moore
Patchset 3 looks a lot simpler. https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/54001/content/common/sandbox_linux.cc#newcode64 content/common/sandbox_linux.cc:64: #if !defined(NDEBUG) On ...
7 years, 1 month ago (2013-10-26 07:53:44 UTC) #10
Mostyn Bramley-Moore
*ping* Is this CL still useful, or should I look into the new capabilities sandbox ...
7 years, 1 month ago (2013-11-01 08:27:02 UTC) #11
jln (very slow on Chromium)
Sorry, long delay again :( This looks almost good! Yes, this is still needed and ...
7 years, 1 month ago (2013-11-01 18:55:36 UTC) #12
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/134001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/134001/content/common/sandbox_linux.cc#newcode224 content/common/sandbox_linux.cc:224: bool LinuxSandbox::OpenProc() { On 2013/11/01 18:55:37, jln wrote: > ...
7 years, 1 month ago (2013-11-01 22:22:39 UTC) #13
jln (very slow on Chromium)
lgtm with a few nits. Thanks for working on this! https://chromiumcodereview.appspot.com/24055003/diff/194001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/24055003/diff/194001/content/common/sandbox_linux.cc#newcode67 ...
7 years, 1 month ago (2013-11-02 00:10:55 UTC) #14
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/194001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/194001/content/common/sandbox_linux.cc#newcode67 content/common/sandbox_linux.cc:67: CHECK(closedir(d) == 0); On 2013/11/02 00:10:56, jln wrote: > ...
7 years, 1 month ago (2013-11-02 07:30:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/24055003/254001
7 years, 1 month ago (2013-11-02 07:30:41 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=184017
7 years, 1 month ago (2013-11-02 08:55:47 UTC) #17
Mostyn Bramley-Moore
If I remove the "errno is ENOENT" part of the "guess false if we can't ...
7 years, 1 month ago (2013-11-02 10:20:42 UTC) #18
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/24055003/diff/514001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/24055003/diff/514001/content/common/sandbox_linux.cc#newcode231 content/common/sandbox_linux.cc:231: if (proc_self_fd < 0) { I wonder what's happening ...
7 years, 1 month ago (2013-11-05 03:47:28 UTC) #19
Mostyn Bramley-Moore
https://codereview.chromium.org/24055003/diff/514001/content/common/sandbox_linux.cc File content/common/sandbox_linux.cc (right): https://codereview.chromium.org/24055003/diff/514001/content/common/sandbox_linux.cc#newcode231 content/common/sandbox_linux.cc:231: if (proc_self_fd < 0) { On 2013/11/05 03:47:28, jln ...
7 years, 1 month ago (2013-11-05 07:11:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/24055003/634001
7 years, 1 month ago (2013-11-05 13:13:09 UTC) #21
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=97913
7 years, 1 month ago (2013-11-05 16:02:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/24055003/634001
7 years, 1 month ago (2013-11-05 18:08:21 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=219846
7 years, 1 month ago (2013-11-05 20:32:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/24055003/634001
7 years, 1 month ago (2013-11-05 20:44:15 UTC) #25
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 22:14:10 UTC) #26
Message was sent while issue was closed.
Change committed as 233100

Powered by Google App Engine
This is Rietveld 408576698