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

Unified Diff: sandbox/linux/seccomp-bpf/sandbox_bpf.h

Issue 10535089: Avoid all library calls (including calls to destructors) after enabling the sandbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp-bpf/sandbox_bpf.h
diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf.h b/sandbox/linux/seccomp-bpf/sandbox_bpf.h
index 0d8b754c1044fe80b025de9aca52c479b56bd640..e4c8149a3b3356005cf1beb9cb4da35ed196655c 100644
--- a/sandbox/linux/seccomp-bpf/sandbox_bpf.h
+++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.h
@@ -230,13 +230,14 @@ class Sandbox {
static int getProcFd() { return proc_fd_; }
private:
+ typedef std::vector<struct sock_filter> Program;
+
static ErrorCode probeEvaluator(int signo);
static bool kernelSupportSeccompBPF(int proc_fd);
-
- static bool isSingleThreaded(int proc_fd);
- static bool disableFilesystem();
- static void installFilter();
- static void sigSys(int nr, siginfo_t *info, void *void_context);
+ static bool isSingleThreaded(int proc_fd);
+ static bool disableFilesystem();
+ static void installFilter();
+ static void sigSys(int nr, siginfo_t *info, void *void_context);
static bool suppressLogging_;
static SandboxStatus status_;
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698