blob: 4ec7c6a0044a87e90e4968d03aed51af5b9864d2 [file] [log] [blame]
// Copyright 2017 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_NETWORK_POLICY_LINUX_H_
#define SANDBOX_POLICY_LINUX_BPF_NETWORK_POLICY_LINUX_H_
#include "sandbox/linux/bpf_dsl/bpf_dsl.h"
#include "sandbox/linux/system_headers/linux_syscalls.h"
#include "sandbox/policy/export.h"
#include "sandbox/policy/linux/bpf_base_policy_linux.h"
namespace sandbox {
namespace policy {
class SANDBOX_POLICY_EXPORT NetworkProcessPolicy : public BPFBasePolicy {
public:
NetworkProcessPolicy();
NetworkProcessPolicy(const NetworkProcessPolicy&) = delete;
NetworkProcessPolicy& operator=(const NetworkProcessPolicy&) = delete;
~NetworkProcessPolicy() override;
bpf_dsl::ResultExpr EvaluateSyscall(int system_call_number) const override;
};
} // namespace policy
} // namespace sandbox
#endif // SANDBOX_POLICY_LINUX_BPF_NETWORK_POLICY_LINUX_H_