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

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

Issue 733303004: Linux sandbox: change API to start the sandbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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/bpf_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
index 700ae526cc8e4b05089af491d0221a9303600a81..a1f31e84c5881faed06e29259188785b436f6f78 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -165,7 +165,7 @@ bool UpdateProcessTypeAndEnableSandbox(
DCHECK(broker_sandboxer_allocator);
UpdateProcessTypeToGpuBroker();
return SandboxSeccompBPF::StartSandboxWithExternalPolicy(
- make_scoped_ptr(broker_sandboxer_allocator()));
+ make_scoped_ptr(broker_sandboxer_allocator()), base::ScopedFD(-1));
mdempsky 2014/11/24 21:58:23 I think you can just use base::ScopedFD() instead
jln (very slow on Chromium) 2014/11/24 22:45:48 Done.
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698