summaryrefslogtreecommitdiff
path: root/chromium/content/common/sandbox_init_linux.cc
blob: 8674fc824d27efe66e2424b34b664d49d3b75fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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/callback.h"
#include "content/common/sandbox_seccomp_bpf_linux.h"

namespace content {

bool InitializeSandbox(playground2::BpfSandboxPolicy policy) {
  return SandboxSeccompBpf::StartSandboxWithExternalPolicy(policy);
}

playground2::BpfSandboxPolicyCallback GetBpfSandboxBaselinePolicy() {
  return SandboxSeccompBpf::GetBaselinePolicy();
}

}  // namespace content