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

Issue 915823002: Namespace sandbox: add important security checks (Closed)

Created:
5 years, 10 months ago by jln (very slow on Chromium)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Namespace sandbox: add important security checks When engaging the namespace sandbox, add important checks that the process is single threaded and has no directory file descriptor open. As part of this change, move the function engaging the namespace sandbox from the Zygote to the LinuxSandbox class. BUG=457377, 312380 Committed: https://crrev.com/b94f6817d3a0e20ec5c3393a4eb13dd360acbd4e Cr-Commit-Position: refs/heads/master@{#315932}

Patch Set 1 #

Patch Set 2 : Update NaCl as well. #

Patch Set 3 : Rebase #

Patch Set 4 : include <errno.h> #

Patch Set 5 : Rename files to _linux.* #

Patch Set 6 : Better documentation. #

Total comments: 12

Patch Set 7 : Address comments. #

Total comments: 2

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -74 lines) Patch
M components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
A content/common/sandbox_linux/sandbox_debug_handling_linux.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A content/common/sandbox_linux/sandbox_debug_handling_linux.cc View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
M content/common/sandbox_linux/sandbox_linux.h View 1 2 3 4 5 6 2 chunks +21 lines, -4 lines 0 comments Download
M content/common/sandbox_linux/sandbox_linux.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 2 3 4 5 6 7 6 chunks +7 lines, -69 lines 0 comments Download
M sandbox/linux/services/credentials.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
jln (very slow on Chromium)
Ricky: PTAL! This adds the required security check. I'll write another CL to pass a ...
5 years, 10 months ago (2015-02-11 00:08:39 UTC) #2
jln (very slow on Chromium)
Matthew: I'm adding you since I'll need you to take a look in any case ...
5 years, 10 months ago (2015-02-11 03:01:57 UTC) #4
rickyz (no longer on Chrome)
lgtm, thanks for doing this - just a couple of comments on comments https://codereview.chromium.org/915823002/diff/100001/content/common/sandbox_linux/sandbox_linux.cc File ...
5 years, 10 months ago (2015-02-11 22:59:56 UTC) #5
jln (very slow on Chromium)
Thanks Ricky! Matthew: PTAL! https://chromiumcodereview.appspot.com/915823002/diff/100001/content/common/sandbox_linux/sandbox_linux.cc File content/common/sandbox_linux/sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/915823002/diff/100001/content/common/sandbox_linux/sandbox_linux.cc#newcode198 content/common/sandbox_linux/sandbox_linux.cc:198: // safe, as this class ...
5 years, 10 months ago (2015-02-11 23:13:07 UTC) #7
mdempsky
lgtm https://chromiumcodereview.appspot.com/915823002/diff/120001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/915823002/diff/120001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode119 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:119: CHECK(!HasOpenDirectory()); This matches the ordering under IsSuidSandboxChild(), but ...
5 years, 10 months ago (2015-02-12 03:07:15 UTC) #8
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/915823002/diff/120001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/915823002/diff/120001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode119 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:119: CHECK(!HasOpenDirectory()); On 2015/02/12 03:07:14, mdempsky wrote: > This matches ...
5 years, 10 months ago (2015-02-12 03:25:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/915823002/120001
5 years, 10 months ago (2015-02-12 03:26:52 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/42200)
5 years, 10 months ago (2015-02-12 03:31:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/915823002/140001
5 years, 10 months ago (2015-02-12 03:56:57 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-12 04:53:14 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 04:53:54 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b94f6817d3a0e20ec5c3393a4eb13dd360acbd4e
Cr-Commit-Position: refs/heads/master@{#315932}

Powered by Google App Engine
This is Rietveld 408576698