| Index: content/common/sandbox_init_linux.cc
|
| diff --git a/content/common/sandbox_init_linux.cc b/content/common/sandbox_init_linux.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b2e6b4a50152ef4092f14079c0d5aacf8a35bdc3
|
| --- /dev/null
|
| +++ b/content/common/sandbox_init_linux.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/public/common/sandbox_init.h"
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/common/sandbox_seccomp_bpf_linux.h"
|
| +#include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
|
| +
|
| +namespace content {
|
| +
|
| +bool InitializeSandbox(scoped_ptr<sandbox::SandboxBPFPolicy> policy) {
|
| + return SandboxSeccompBPF::StartSandboxWithExternalPolicy(policy.Pass());
|
| +}
|
| +
|
| +scoped_ptr<sandbox::SandboxBPFPolicy> GetBPFSandboxBaselinePolicy() {
|
| + return SandboxSeccompBPF::GetBaselinePolicy().Pass();
|
| +}
|
| +
|
| +} // namespace content
|
|
|