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; |
} |