chromium/sandbox/policy/linux/bpf_base_policy_linux.h

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_POLICY_LINUX_BPF_BASE_POLICY_LINUX_H_
#define SANDBOX_POLICY_LINUX_BPF_BASE_POLICY_LINUX_H_

#include <memory>

#include "build/build_config.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl_forward.h"
#include "sandbox/linux/bpf_dsl/policy.h"
#include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h"
#include "sandbox/policy/export.h"

#if BUILDFLAG(IS_ANDROID)
#include "sandbox/linux/seccomp-bpf-helpers/baseline_policy_android.h"
#endif

namespace sandbox::policy {

// The "baseline" BPF policy. Any other seccomp-bpf policy should inherit
// from it.
// It implements the main Policy interface. Due to its nature
// as a "kernel attack surface reduction" layer, it's implementation-defined.
class SANDBOX_POLICY_EXPORT BPFBasePolicy : public bpf_dsl::Policy {};

}  // namespace sandbox::policy

#endif  // SANDBOX_POLICY_LINUX_BPF_BASE_POLICY_LINUX_H_