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

Unified Diff: content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some draft code to discuss about generalizing EarlySandbox for gpu process Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc
diff --git a/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc b/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc
index 7a3620ccf667abf92be59f6caf8b3bcf4369f1f7..92a5409760eb02d46237d002f0cc75f6c2a1bbf5 100644
--- a/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc
+++ b/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc
@@ -170,6 +170,9 @@ std::unique_ptr<SandboxBPFBasePolicy> GetGpuProcessSandbox() {
allow_sysv_shm = true;
}
+ // XXX: Generalize CrosArmGpuProcessPolicy to a new
+ // GpuProcessPolicyEarlySandbox then here just rely on if
+ // has switches::kGpuSandboxStartEarly
if (IsChromeOS() && IsArchitectureArm()) {
return std::unique_ptr<SandboxBPFBasePolicy>(
new CrosArmGpuProcessPolicy(allow_sysv_shm));

Powered by Google App Engine
This is Rietveld 408576698