Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc

Issue 570763002: Remove more dependencies on sandbox/linux/seccomp-bpf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698