1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SERVICES_SERVICE_MANAGER_SANDBOX_LINUX_BPF_PRINT_COMPOSITOR_POLICY_LINUX_H_
6 #define SERVICES_SERVICE_MANAGER_SANDBOX_LINUX_BPF_PRINT_COMPOSITOR_POLICY_LINUX_H_
7 
8 #include "base/macros.h"
9 #include "services/service_manager/sandbox/linux/bpf_base_policy_linux.h"
10 
11 namespace service_manager {
12 
13 // This policy can be used by print compositor utility processes.
14 class PrintCompositorProcessPolicy : public BPFBasePolicy {
15  public:
16   PrintCompositorProcessPolicy();
17   ~PrintCompositorProcessPolicy() override;
18 
19   sandbox::bpf_dsl::ResultExpr EvaluateSyscall(
20       int system_call_number) const override;
21 
22  private:
23   DISALLOW_COPY_AND_ASSIGN(PrintCompositorProcessPolicy);
24 };
25 
26 }  // namespace service_manager
27 
28 #endif  // SERVICES_SERVICE_MANAGER_SANDBOX_LINUX_BPF_PRINT_COMPOSITOR_POLICY_LINUX_H_
29