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

Issue 10534049: Disable the seccomp filter GPU process sandbox by default on Chrome OS. (Closed)

Created:
8 years, 6 months ago by Jorge Lucangeli Obes
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jochen+watch-content_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, jln+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Disable the seccomp filter GPU process sandbox by default on Chrome OS. We don't want the GPU process sandbox on by default on Chrome OS. Since we control Chrome's command line, we can make sure it's enabled for users, but disabled for developers. Add an '--enable-chromeos-gpu-sandbox' flag, and remove the #ifdef that disabled the sandbox on Chrome OS. Until we manually add the flag to Chrome OS, the sandbox will continue to be disabled. Moreover, even with the flag on, we only enable the sandbox on 64 bits and for Intel GPUs. BUG=127664 TEST=unit tests, and WebGL test websites on Lumpy. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141683

Patch Set 1 #

Total comments: 4

Patch Set 2 : Change flag name, move GPU info check to gpu_main.cc #

Total comments: 7

Patch Set 3 : Move all GPU process checks to function, allow non-Intel GPUs in debug mode. #

Total comments: 2

Patch Set 4 : Make '--enable-gpu-sandbox' available on Linux. #

Total comments: 2

Patch Set 5 : Correct alignment of '=' sign for cmdline flag. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M content/common/sandbox_init_linux.cc View 1 2 3 3 chunks +22 lines, -2 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 1 chunk +12 lines, -2 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jorge Lucangeli Obes
Still building to test on Chrome OS, but wanted to do an early sanity check. ...
8 years, 6 months ago (2012-06-07 20:16:28 UTC) #1
Chris Evans
Some initial thoughts. https://chromiumcodereview.appspot.com/10534049/diff/1/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/1/content/common/sandbox_init_linux.cc#newcode25 content/common/sandbox_init_linux.cc:25: #include "content/gpu/gpu_info_collector.h" I'm not 100% sure, ...
8 years, 6 months ago (2012-06-07 23:11:34 UTC) #2
Jorge Lucangeli Obes
On 2012/06/07 23:11:34, Chris Evans wrote: > Some initial thoughts. > > https://chromiumcodereview.appspot.com/10534049/diff/1/content/common/sandbox_init_linux.cc > File ...
8 years, 6 months ago (2012-06-07 23:21:15 UTC) #3
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/10534049/diff/1/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/1/content/common/sandbox_init_linux.cc#newcode25 content/common/sandbox_init_linux.cc:25: #include "content/gpu/gpu_info_collector.h" On 2012/06/07 23:11:34, Chris Evans wrote: > ...
8 years, 6 months ago (2012-06-08 00:15:24 UTC) #4
Chris Evans
https://chromiumcodereview.appspot.com/10534049/diff/8001/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/8001/content/common/sandbox_init_linux.cc#newcode396 content/common/sandbox_init_linux.cc:396: return true; return !command_line.HasSwitch(kDisable) -- see below. https://chromiumcodereview.appspot.com/10534049/diff/8001/content/common/sandbox_init_linux.cc#newcode413 content/common/sandbox_init_linux.cc:413: ...
8 years, 6 months ago (2012-06-08 07:13:57 UTC) #5
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/10534049/diff/8001/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/8001/content/common/sandbox_init_linux.cc#newcode396 content/common/sandbox_init_linux.cc:396: return true; On 2012/06/08 07:13:57, Chris Evans wrote: > ...
8 years, 6 months ago (2012-06-11 20:23:04 UTC) #6
Chris Evans
https://chromiumcodereview.appspot.com/10534049/diff/5005/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/5005/content/common/sandbox_init_linux.cc#newcode396 content/common/sandbox_init_linux.cc:396: #if defined(OS_CHROMEOS) Can you get rid of this ifdef? ...
8 years, 6 months ago (2012-06-11 20:52:23 UTC) #7
Chris Evans
8 years, 6 months ago (2012-06-11 20:52:24 UTC) #8
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/10534049/diff/5005/content/common/sandbox_init_linux.cc File content/common/sandbox_init_linux.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/5005/content/common/sandbox_init_linux.cc#newcode396 content/common/sandbox_init_linux.cc:396: #if defined(OS_CHROMEOS) On 2012/06/11 20:52:23, Chris Evans wrote: > ...
8 years, 6 months ago (2012-06-11 22:56:46 UTC) #9
Chris Evans
LGTM You may need to go hunting for other owners ;-)
8 years, 6 months ago (2012-06-11 23:09:00 UTC) #10
Jorge Lucangeli Obes
On 2012/06/11 23:09:00, Chris Evans wrote: > LGTM > > You may need to go ...
8 years, 6 months ago (2012-06-11 23:39:30 UTC) #11
apatrick_chromium
gpu_main.cc LGTM
8 years, 6 months ago (2012-06-11 23:40:53 UTC) #12
brettw
lgtm https://chromiumcodereview.appspot.com/10534049/diff/12006/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/12006/content/public/common/content_switches.cc#newcode134 content/public/common/content_switches.cc:134: const char kEnableGpuSandbox[] = "enable-gpu-sandbox"; Please aligh the ...
8 years, 6 months ago (2012-06-12 01:03:54 UTC) #13
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/10534049/diff/12006/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://chromiumcodereview.appspot.com/10534049/diff/12006/content/public/common/content_switches.cc#newcode134 content/public/common/content_switches.cc:134: const char kEnableGpuSandbox[] = "enable-gpu-sandbox"; On 2012/06/12 01:03:54, brettw ...
8 years, 6 months ago (2012-06-12 01:27:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/10534049/11008
8 years, 6 months ago (2012-06-12 16:31:40 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 17:55:02 UTC) #16
Change committed as 141683

Powered by Google App Engine
This is Rietveld 408576698