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

Unified Diff: content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h

Issue 758063005: Linux sandbox: report TSYNC status in chrome://sandbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/sandbox_seccomp_bpf_linux.h
diff --git a/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h b/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h
index bf6d15b9013612f3070a9d2451a729e8d3fd7876..1b601c67d4874918789d8bf671c75b4df33b17cb 100644
--- a/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h
+++ b/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.h
@@ -32,9 +32,10 @@ class SandboxSeccompBPF {
static bool IsSeccompBPFDesired();
// Should the sandbox be enabled for process_type ?
static bool ShouldEnableSeccompBPF(const std::string& process_type);
- // Check if the kernel supports this sandbox. It's useful to "prewarm"
- // this, part of the result will be cached.
+ // Check if the kernel supports seccomp-bpf.
static bool SupportsSandbox();
+ // Check if the kernel supports TSYNC (thread synchronization) with seccomp.
+ static bool SupportsSandboxWithTsync();
// Start the sandbox and apply the policy for process_type, depending on
// command line switches.
static bool StartSandbox(const std::string& process_type,
« no previous file with comments | « content/common/sandbox_linux/sandbox_linux.cc ('k') | content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698