| 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 #include "content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.h
" | 5 #include "content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.h
" |
| 6 | 6 |
| 7 #include <sys/syscall.h> |
| 7 #include <sys/types.h> | 8 #include <sys/types.h> |
| 8 | 9 |
| 9 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | |
| 10 | |
| 11 using sandbox::bpf_dsl::Allow; | 10 using sandbox::bpf_dsl::Allow; |
| 12 using sandbox::bpf_dsl::ResultExpr; | 11 using sandbox::bpf_dsl::ResultExpr; |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 SandboxBPFBasePolicyAndroid::SandboxBPFBasePolicyAndroid() | 15 SandboxBPFBasePolicyAndroid::SandboxBPFBasePolicyAndroid() |
| 17 : SandboxBPFBasePolicy() {} | 16 : SandboxBPFBasePolicy() {} |
| 18 | 17 |
| 19 SandboxBPFBasePolicyAndroid::~SandboxBPFBasePolicyAndroid() {} | 18 SandboxBPFBasePolicyAndroid::~SandboxBPFBasePolicyAndroid() {} |
| 20 | 19 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 break; | 51 break; |
| 53 } | 52 } |
| 54 | 53 |
| 55 if (override_and_allow) | 54 if (override_and_allow) |
| 56 return Allow(); | 55 return Allow(); |
| 57 | 56 |
| 58 return SandboxBPFBasePolicy::EvaluateSyscall(sysno); | 57 return SandboxBPFBasePolicy::EvaluateSyscall(sysno); |
| 59 } | 58 } |
| 60 | 59 |
| 61 } // namespace content | 60 } // namespace content |
| OLD | NEW |