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

Issue 2357393003: Add check for file system access to the sandbox. (Closed)

Created:
4 years, 3 months ago by Greg K
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The current test for sandboxing, trying to retrieve the USER_DATA_DIR path, is not reliable. Instead, this adds a central check to the sandbox to see if filesystem access is available (by trying to stat() /proc). BUG=chromium:630420 Committed: https://crrev.com/33b4324fcc0caf430a5b1012a30176daf6bf4de7 Cr-Commit-Position: refs/heads/master@{#421292}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix IsSandboxed() check when loading flash player. #

Patch Set 3 : Fix IsSandboxed() check when loading flash player. #

Total comments: 4

Patch Set 4 : Fix IsSandboxed() check when loading flash player. #

Patch Set 5 : Fix IsSandboxed() check when loading flash player. #

Total comments: 2

Patch Set 6 : Fix IsSandboxed() check when loading flash player. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -10 lines) Patch
M chrome/common/BUILD.gn View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M sandbox/linux/services/credentials.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/linux/services/credentials.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M sandbox/linux/services/credentials_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
Greg K
Ricky, Please review this CL. - Greg
4 years, 3 months ago (2016-09-21 22:27:47 UTC) #2
rickyz (no longer on Chrome)
lgtm with comment https://codereview.chromium.org/2357393003/diff/1/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): https://codereview.chromium.org/2357393003/diff/1/chrome/common/chrome_content_client.cc#newcode303 chrome/common/chrome_content_client.cc:303: // This function tests if DIR_USER_DATA ...
4 years, 3 months ago (2016-09-22 17:31:15 UTC) #3
Greg K
thakis@chromium.org: Please review changes in chrome_content_client.cc Thanks, Greg
4 years, 3 months ago (2016-09-22 17:36:09 UTC) #8
Nico
in what way is it not reliable?
4 years, 3 months ago (2016-09-22 17:37:19 UTC) #9
Greg K
On 2016/09/22 17:37:19, Nico wrote: > in what way is it not reliable? It was ...
4 years, 3 months ago (2016-09-22 17:41:00 UTC) #10
Nico
Since this possibly never worked and seems to be important enough to change it, is ...
4 years, 3 months ago (2016-09-22 18:00:20 UTC) #11
Greg K
On 2016/09/22 18:00:20, Nico wrote: > Since this possibly never worked and seems to be ...
4 years, 3 months ago (2016-09-22 18:06:13 UTC) #12
Greg K
On 2016/09/22 18:06:13, Greg K wrote: > On 2016/09/22 18:00:20, Nico wrote: > > Since ...
4 years, 3 months ago (2016-09-23 17:22:13 UTC) #13
rickyz (no longer on Chrome)
https://codereview.chromium.org/2357393003/diff/40001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/2357393003/diff/40001/sandbox/linux/services/credentials.cc#newcode318 sandbox/linux/services/credentials.cc:318: CHECK(!base::DirectoryExists(base::FilePath("/proc"))); Mind replacing this line with CHECK(!HasFileSystemAccess()) https://codereview.chromium.org/2357393003/diff/40001/sandbox/linux/services/credentials_unittest.cc File ...
4 years, 3 months ago (2016-09-23 23:40:20 UTC) #14
rickyz (no longer on Chrome)
(er oops, forgot to include lgtm - just a minor comment or two)
4 years, 3 months ago (2016-09-23 23:40:46 UTC) #15
Greg K
Thanks. Nico, would you please review chrome/common? Thanks, Greg https://codereview.chromium.org/2357393003/diff/40001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/2357393003/diff/40001/sandbox/linux/services/credentials.cc#newcode318 sandbox/linux/services/credentials.cc:318: ...
4 years, 2 months ago (2016-09-26 20:22:13 UTC) #16
Nico
lgtm with updated CL description. thanks!
4 years, 2 months ago (2016-09-26 20:23:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2357393003/60001
4 years, 2 months ago (2016-09-26 21:04:50 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/230623) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-09-26 21:10:09 UTC) #24
Greg K
Nico, Is the change to chrome/common/BUILD.gn to make the dependency explicit OK? Thanks, Greg On ...
4 years, 2 months ago (2016-09-26 21:15:45 UTC) #25
Nico
https://codereview.chromium.org/2357393003/diff/80001/chrome/common/BUILD.gn File chrome/common/BUILD.gn (right): https://codereview.chromium.org/2357393003/diff/80001/chrome/common/BUILD.gn#newcode212 chrome/common/BUILD.gn:212: "//sandbox/linux:sandbox_services", You're not including a generated header in a ...
4 years, 2 months ago (2016-09-27 15:39:55 UTC) #26
Greg K
https://codereview.chromium.org/2357393003/diff/80001/chrome/common/BUILD.gn File chrome/common/BUILD.gn (right): https://codereview.chromium.org/2357393003/diff/80001/chrome/common/BUILD.gn#newcode212 chrome/common/BUILD.gn:212: "//sandbox/linux:sandbox_services", On 2016/09/27 15:39:55, Nico (mostly away until Oct ...
4 years, 2 months ago (2016-09-27 17:18:28 UTC) #27
Nico
lgtm
4 years, 2 months ago (2016-09-27 18:05:27 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2357393003/100001
4 years, 2 months ago (2016-09-27 18:07:37 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-27 19:20:27 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 19:23:33 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/33b4324fcc0caf430a5b1012a30176daf6bf4de7
Cr-Commit-Position: refs/heads/master@{#421292}

Powered by Google App Engine
This is Rietveld 408576698