diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 06:16:20 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 06:16:20 +0000 |
commit | 0267f7eac88324c2a7757352221c79c2cfe8a7bf (patch) | |
tree | e7eb74f582f22ad3dda2a4c5e3f05e8743cd2669 /sandbox/linux/seccomp-bpf/sandbox_bpf.h | |
parent | 5d6391fcbdc4cc79a420e24d86952a147fb9b1de (diff) | |
download | chromium_src-0267f7eac88324c2a7757352221c79c2cfe8a7bf.zip chromium_src-0267f7eac88324c2a7757352221c79c2cfe8a7bf.tar.gz chromium_src-0267f7eac88324c2a7757352221c79c2cfe8a7bf.tar.bz2 |
seccomp bpf: make more of the Sandbox class private
- The Sandbox Class is not supposed to be instantiated for now,
so we disallow construction
- Move friends declaration to the private part
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10629009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/seccomp-bpf/sandbox_bpf.h')
-rw-r--r-- | sandbox/linux/seccomp-bpf/sandbox_bpf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf.h b/sandbox/linux/seccomp-bpf/sandbox_bpf.h index de7fa50..d545dd2 100644 --- a/sandbox/linux/seccomp-bpf/sandbox_bpf.h +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.h @@ -135,9 +135,6 @@ struct arch_sigsys { namespace playground2 { class Sandbox { - friend class Util; - friend class Verifier; - public: enum SandboxStatus { STATUS_UNKNOWN, // Status prior to calling supportsSeccompSandbox() @@ -322,6 +319,8 @@ class Sandbox { static int getProcFd() { return proc_fd_; } private: + friend class Util; + friend class Verifier; struct Range { Range(uint32_t f, uint32_t t, ErrorCode e) : from(f), @@ -367,6 +366,7 @@ class Sandbox { static TrapIds trapIds_; static ErrorCode *trapArray_; static size_t trapArraySize_; + DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); }; } // namespace |