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

Unified Diff: content/common/sandbox_linux.h

Issue 24055003: add a LinuxSandbox::HasOpenDirectories() sanity check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/common/sandbox_linux.cc » ('j') | content/common/sandbox_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_linux.h
diff --git a/content/common/sandbox_linux.h b/content/common/sandbox_linux.h
index 412c04ab20bdf1915974443370025d853579ed9b..6011374316f8ceddd85a34f05c6e993e042e217e 100644
--- a/content/common/sandbox_linux.h
+++ b/content/common/sandbox_linux.h
@@ -57,6 +57,9 @@ class LinuxSandbox {
// Returns true if the current process is single-threaded or if the number
// of threads cannot be determined.
bool IsSingleThreaded() const;
+ // Returns true if it can be determined that the current process has open
+ // directories (besides /proc).
jln (very slow on Chromium) 2013/10/22 01:10:50 Let's just say "that are not managed by the LinuxS
Mostyn Bramley-Moore 2013/10/23 23:15:19 Done in patchset 2.
+ bool HasOpenDirectories() const;
// Did we start Seccomp BPF?
bool seccomp_bpf_started() const;
« no previous file with comments | « no previous file | content/common/sandbox_linux.cc » ('j') | content/common/sandbox_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698