| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ |
| 6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ | 6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ |
| 7 | 7 |
| 8 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h" | 8 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 // This policy can be used by utility processes. | 12 // This policy can be used by utility processes. |
| 13 class UtilityProcessPolicy : public SandboxBPFBasePolicy { | 13 class UtilityProcessPolicy : public SandboxBPFBasePolicy { |
| 14 public: | 14 public: |
| 15 UtilityProcessPolicy(); | 15 UtilityProcessPolicy(); |
| 16 virtual ~UtilityProcessPolicy(); | 16 virtual ~UtilityProcessPolicy(); |
| 17 | 17 |
| 18 virtual sandbox::bpf_dsl::ResultExpr EvaluateSyscall( | 18 virtual sandbox::bpf_dsl::ResultExpr EvaluateSyscall( |
| 19 int system_call_number) const OVERRIDE; | 19 int system_call_number) const override; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(UtilityProcessPolicy); | 22 DISALLOW_COPY_AND_ASSIGN(UtilityProcessPolicy); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 } // namespace content | 25 } // namespace content |
| 26 | 26 |
| 27 #endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ | 27 #endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_ |
| OLD | NEW |