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

Issue 1840923002: Removed setuid Sandbox Check as Per Bug#598454 (Closed)

Created:
4 years, 8 months ago by nlurski
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed setuid Sandbox Check as Per Bug#598454 I removed the setuid checks in the browser_main_loop.cc SetupSandbox method. Because the only code left in the SetupSandbox method was tickling the zygote host so it would fork, the method was renamed to TickleSandbox. Additionally this is my first patch, so I need try-jobs to be run for me. BUG=598454

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed call to init sandbox_binary #

Total comments: 1

Patch Set 3 : Added conditional to keep the sandbox in ChromeOS #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 chunks +12 lines, -5 lines 2 comments Download

Messages

Total messages: 33 (13 generated)
nlurski
Removed setuid Sandbox Check as Per Bug#598454 I removed the setuid checks in the browser_main_loop.cc ...
4 years, 8 months ago (2016-03-29 00:53:58 UTC) #2
nlurski
4 years, 8 months ago (2016-03-29 13:01:37 UTC) #5
xiyuan
I am not familiar with the code, passing to jln@.
4 years, 8 months ago (2016-03-29 16:09:27 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840923002/1
4 years, 8 months ago (2016-03-29 16:10:10 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/135962)
4 years, 8 months ago (2016-03-29 16:42:52 UTC) #11
jln (very slow on Chromium)
The goal of this code is in part to avoid very weird and puzzling failures ...
4 years, 8 months ago (2016-03-29 18:49:28 UTC) #14
nlurski
On 2016/03/29 at 18:49:28, jln wrote: > The goal of this code is in part ...
4 years, 8 months ago (2016-03-29 18:57:41 UTC) #15
mdempsky
If you really want to tackle this bug, I'll review it. But in general, I ...
4 years, 8 months ago (2016-03-29 19:02:47 UTC) #16
Dirk Pranke
I defer to mdempsky and rickyz, but a couple of comments ... https://codereview.chromium.org/1840923002/diff/1/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc ...
4 years, 8 months ago (2016-03-29 21:17:47 UTC) #18
Dirk Pranke
Oh, also, if we don't need to use the setuid sandbox, we should probably also ...
4 years, 8 months ago (2016-03-29 21:18:24 UTC) #19
nlurski
I added the call to Init(sandbox_binary.value()), but did not remove the build files yet. Seemed ...
4 years, 8 months ago (2016-03-30 01:32:41 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840923002/20001
4 years, 8 months ago (2016-03-30 01:46:32 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/195972)
4 years, 8 months ago (2016-03-30 07:49:52 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1840923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1840923002/20001
4 years, 8 months ago (2016-03-30 18:17:28 UTC) #26
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 8 months ago (2016-03-30 18:17:31 UTC) #28
nlurski
On 2016/03/30 at 18:17:31, commit-bot wrote: > Dry run: No L-G-T-M from a valid reviewer ...
4 years, 8 months ago (2016-03-30 18:19:05 UTC) #29
Dirk Pranke
On 2016/03/30 18:19:05, nlurski wrote: > Can someone restart the try-job? It looks like it ...
4 years, 8 months ago (2016-03-30 18:21:00 UTC) #30
mdempsky
https://codereview.chromium.org/1840923002/diff/20001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (left): https://codereview.chromium.org/1840923002/diff/20001/content/browser/browser_main_loop.cc#oldcode200 content/browser/browser_main_loop.cc:200: scoped_ptr<sandbox::SetuidSandboxHost> setuid_sandbox_host( We still need this code for Chrome ...
4 years, 8 months ago (2016-03-30 19:10:41 UTC) #31
nlurski
On 2016/03/30 at 19:10:41, mdempsky wrote: > https://codereview.chromium.org/1840923002/diff/20001/content/browser/browser_main_loop.cc > File content/browser/browser_main_loop.cc (left): > > https://codereview.chromium.org/1840923002/diff/20001/content/browser/browser_main_loop.cc#oldcode200 ...
4 years, 8 months ago (2016-03-30 20:10:11 UTC) #32
mdempsky
4 years, 8 months ago (2016-04-01 23:25:43 UTC) #33
https://codereview.chromium.org/1840923002/diff/40001/content/browser/browser...
File content/browser/browser_main_loop.cc (right):

https://codereview.chromium.org/1840923002/diff/40001/content/browser/browser...
content/browser/browser_main_loop.cc:233: void SetupSandbox() {
I don't understand why you're duplicating all of this code.  Why not just wrap
the CrOS-only logic in #if defined(OS_CHROMEOS)?

https://codereview.chromium.org/1840923002/diff/40001/content/browser/browser...
content/browser/browser_main_loop.cc:453: SetupSandbox();
This won't compile on Chrome OS: your SetupSandbox signatures differ between the
two cases.

Powered by Google App Engine
This is Rietveld 408576698