This source file includes following definitions.
- InitializeSandbox
- GetBPFSandboxBaselinePolicy
#include "content/public/common/sandbox_init.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/sandbox_linux/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();
}
}