diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 20:38:04 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-02 20:38:04 +0000 |
commit | 3c52f8ede1c294f704fdcb162c7a02fb4eb7e7f1 (patch) | |
tree | f640e2b6c6112d799d35bcdd8d987132813418ea /content/zygote/zygote_linux.h | |
parent | a00ca09cd8f799f984f2856aaeac3308dc948071 (diff) | |
download | chromium_src-3c52f8ede1c294f704fdcb162c7a02fb4eb7e7f1.zip chromium_src-3c52f8ede1c294f704fdcb162c7a02fb4eb7e7f1.tar.gz chromium_src-3c52f8ede1c294f704fdcb162c7a02fb4eb7e7f1.tar.bz2 |
Create a LinuxSandbox class.
The LinuxSandbox class aims to become the central place for Linux
sandboxing inside content/.
For now, this refactors mostly code from the Zygote.
BUG=
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/10826093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/zygote/zygote_linux.h')
-rw-r--r-- | content/zygote/zygote_linux.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/content/zygote/zygote_linux.h b/content/zygote/zygote_linux.h index 859bb37..a093855 100644 --- a/content/zygote/zygote_linux.h +++ b/content/zygote/zygote_linux.h @@ -10,7 +10,6 @@ #include "base/hash_tables.h" #include "base/process.h" -#include "content/common/seccomp_sandbox.h" class Pickle; class PickleIterator; @@ -24,12 +23,8 @@ class ZygoteForkDelegate; // runs it. class Zygote { public: - // The proc_fd_for_seccomp should be a file descriptor to /proc under the - // seccomp sandbox. This is not needed when not using seccomp, and should be - // -1 in those cases. Zygote(int sandbox_flags, - ZygoteForkDelegate* helper, - int proc_fd_for_seccomp); + ZygoteForkDelegate* helper); ~Zygote(); bool ProcessRequests(); @@ -98,11 +93,6 @@ class Zygote { const int sandbox_flags_; ZygoteForkDelegate* helper_; -#if defined(SECCOMP_SANDBOX) - // File descriptor to proc under seccomp, -1 when not using seccomp. - int proc_fd_for_seccomp_; -#endif - // These might be set by helper_->InitialUMA. They supply a UMA enumeration // sample we should report on the first fork. std::string initial_uma_name_; |