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

Unified Diff: content/common/sandbox_linux.cc

Issue 10829156: Linux: add BPF sandbox status in about:sandbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « chrome/browser/ui/webui/about_ui.cc ('k') | content/common/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_linux.cc
diff --git a/content/common/sandbox_linux.cc b/content/common/sandbox_linux.cc
index 33676dd862c131effb8ccda222747cbf61f9ef85..d4618e59c1876e3b0896fd51c9097d89847d0118 100644
--- a/content/common/sandbox_linux.cc
+++ b/content/common/sandbox_linux.cc
@@ -160,7 +160,12 @@ int LinuxSandbox::GetStatus() const {
ShouldEnableSeccompLegacy(switches::kRendererProcess)) {
// We report whether the sandbox will be activated when renderers go
// through sandbox initialization.
- sandbox_flags |= kSandboxLinuxSeccomp;
+ sandbox_flags |= kSandboxLinuxSeccompLegacy;
+ }
+ if (seccomp_bpf_supported() &&
+ SandboxSeccompBpf::ShouldEnableSeccompBpf(switches::kRendererProcess)) {
+ // Same here, what we report is what we will do for the renderer.
+ sandbox_flags |= kSandboxLinuxSeccompBpf;
}
return sandbox_flags;
}
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | content/common/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698