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

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 10907035: Linux Sandbox: sandbox workers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_seccomp_bpf_linux.cc
diff --git a/content/common/sandbox_seccomp_bpf_linux.cc b/content/common/sandbox_seccomp_bpf_linux.cc
index 4fc7b3ce7d950511b9d19c18b85976b6d4fcd39b..d9dcfd1b6f773f4f9af10fb5591546972c44325c 100644
--- a/content/common/sandbox_seccomp_bpf_linux.cc
+++ b/content/common/sandbox_seccomp_bpf_linux.cc
@@ -1241,7 +1241,7 @@ ErrorCode GpuProcessPolicy_x86_64(int sysno) {
}
}
-ErrorCode RendererProcessPolicy_x86_64(int sysno) {
+ErrorCode RendererOrWorkerProcessPolicy_x86_64(int sysno) {
switch (sysno) {
case __NR_ioctl: // TODO(jln) investigate legitimate use in the renderer
// and see if alternatives can be used.
@@ -1360,13 +1360,11 @@ Sandbox::EvaluateSyscall GetProcessSyscallPolicy(
return FlashProcessPolicy_x86_64;
}
- if (process_type == switches::kRendererProcess) {
- return RendererProcessPolicy_x86_64;
+ if (process_type == switches::kRendererProcess ||
+ process_type == switches::kWorkerProcess) {
+ return RendererOrWorkerProcessPolicy_x86_64;
}
- if (process_type == switches::kWorkerProcess) {
- return BlacklistDebugAndNumaPolicy;
- }
NOTREACHED();
// This will be our default if we need one.
return AllowAllPolicy;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698