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

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: Added comments requested by Julien 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 3501e62807ffdb77882c354efe33b7625fb4e64b..82e4656b2df9b9df2c92bb2cc8ecc1eecca29cfd 100644
--- a/sandbox/linux/seccomp-bpf/sandbox_bpf.h
+++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.h
@@ -224,13 +224,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