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

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 10909044: Linux: initialize the sandbox in the Plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AllowAll 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 | content/plugin/plugin_main.cc » ('j') | 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 446f314f0cf9fd0998fee50de12a064e9f0633ab..83c5d5110b4ba667b25e102c7cbd1f27aad988e0 100644
--- a/content/common/sandbox_seccomp_bpf_linux.cc
+++ b/content/common/sandbox_seccomp_bpf_linux.cc
@@ -1369,6 +1369,10 @@ Sandbox::EvaluateSyscall GetProcessSyscallPolicy(
return BlacklistDebugAndNumaPolicy;
}
+ if (process_type == switches::kPluginProcess) {
+ return AllowAllPolicy;
+ }
+
NOTREACHED();
// This will be our default if we need one.
return AllowAllPolicy;
« no previous file with comments | « no previous file | content/plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698