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

Issue 759613008: bpf gpu policy: Change GPU bpf policy to support DRI3 (Closed)

Created:
6 years ago by leecam
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jln+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

bpf gpu policy: Change GPU bpf policy to support DRI3 DRI3 creates files in /dev/shm/. This change adds /dev/shm to the whitelist for non-ChromeOS Linux platforms. These files are unlinked and truncated so the following policy changes have also been made. unlink is allowed in the broker process policy. ftruncate is allowed in the gpu process policy Now DRI3 is supported this change also reverts the temporary fix to set env var LIBGL_DRI3_DISABLE https://codereview.chromium.org/708043002 BUG=415681 TEST=Ubuntu 14.10 configured with DRI3 Committed: https://crrev.com/4e3c98a7788ba99f5dd72c87c9ba84e69fbd1bbf Cr-Commit-Position: refs/heads/master@{#306698}

Patch Set 1 #

Total comments: 2

Patch Set 2 : lines_plus_plus #

Total comments: 6

Patch Set 3 : fixing up comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -13 lines) Patch
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M content/gpu/gpu_main.cc View 2 chunks +0 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
leecam
PTAL
6 years ago (2014-12-02 02:00:45 UTC) #2
Jorge Lucangeli Obes
https://codereview.chromium.org/759613008/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/759613008/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode281 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:281: } Let's keep the empty line below.
6 years ago (2014-12-02 21:09:06 UTC) #3
leecam
https://codereview.chromium.org/759613008/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/759613008/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode281 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:281: } On 2014/12/02 21:09:06, Jorge Lucangeli Obes wrote: > ...
6 years ago (2014-12-03 17:08:51 UTC) #4
Jorge Lucangeli Obes
lgtm
6 years ago (2014-12-03 17:10:33 UTC) #6
leecam
Adding piman as OWNER for gpu_main.cc revert
6 years ago (2014-12-03 17:10:50 UTC) #7
Jorge Lucangeli Obes
Alternatively, Ken for OWNERS since Antoine might be busy.
6 years ago (2014-12-03 17:12:24 UTC) #9
Ken Russell (switch to Gerrit)
LGTM overall, but a couple of comments / questions. https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode138 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:138: ...
6 years ago (2014-12-03 19:48:15 UTC) #10
jln (very slow on Chromium)
Let's discuss unlink(). It's very problematic, I don't think that was part of the plan. ...
6 years ago (2014-12-03 19:57:59 UTC) #11
Jorge Lucangeli Obes
https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode145 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:145: case __NR_unlink: On 2014/12/03 19:57:59, jln wrote: > On ...
6 years ago (2014-12-03 21:01:50 UTC) #12
leecam
On 2014/12/03 19:57:59, jln wrote: > Let's discuss unlink(). It's very problematic, I don't think ...
6 years ago (2014-12-03 21:03:34 UTC) #13
piman
lgtm
6 years ago (2014-12-03 21:09:11 UTC) #14
jln (very slow on Chromium)
On 2014/12/03 21:03:34, leecam wrote: > This is brokered away...so we can drop the FS ...
6 years ago (2014-12-03 21:15:52 UTC) #15
leecam
Thanks all...comments fixed up. https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/759613008/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode138 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:138: // openat allowed. On 2014/12/03 ...
6 years ago (2014-12-03 21:28:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759613008/40001
6 years ago (2014-12-03 21:29:11 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-03 22:46:25 UTC) #19
commit-bot: I haz the power
6 years ago (2014-12-03 22:47:50 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4e3c98a7788ba99f5dd72c87c9ba84e69fbd1bbf
Cr-Commit-Position: refs/heads/master@{#306698}

Powered by Google App Engine
This is Rietveld 408576698