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

Side by Side Diff: content/common/sandbox_linux/bpf_renderer_policy_linux.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/bpf_renderer_policy_linux.h" 5 #include "content/common/sandbox_linux/bpf_renderer_policy_linux.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "content/common/sandbox_linux/sandbox_linux.h" 11 #include "content/common/sandbox_linux/sandbox_linux.h"
12 #include "sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h" 12 #include "sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h"
13 #include "sandbox/linux/seccomp-bpf-helpers/syscall_sets.h" 13 #include "sandbox/linux/seccomp-bpf-helpers/syscall_sets.h"
14 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
15 #include "sandbox/linux/services/linux_syscalls.h" 14 #include "sandbox/linux/services/linux_syscalls.h"
16 15
17 using sandbox::SyscallSets; 16 using sandbox::SyscallSets;
18 using sandbox::bpf_dsl::Allow; 17 using sandbox::bpf_dsl::Allow;
19 using sandbox::bpf_dsl::Error; 18 using sandbox::bpf_dsl::Error;
20 using sandbox::bpf_dsl::ResultExpr; 19 using sandbox::bpf_dsl::ResultExpr;
21 20
22 namespace content { 21 namespace content {
23 22
24 RendererProcessPolicy::RendererProcessPolicy() {} 23 RendererProcessPolicy::RendererProcessPolicy() {}
(...skipping 30 matching lines...) Expand all
55 return Allow(); 54 return Allow();
56 case __NR_prlimit64: 55 case __NR_prlimit64:
57 return Error(EPERM); // See crbug.com/160157. 56 return Error(EPERM); // See crbug.com/160157.
58 default: 57 default:
59 // Default on the content baseline policy. 58 // Default on the content baseline policy.
60 return SandboxBPFBasePolicy::EvaluateSyscall(sysno); 59 return SandboxBPFBasePolicy::EvaluateSyscall(sysno);
61 } 60 }
62 } 61 }
63 62
64 } // namespace content 63 } // namespace content
OLDNEW
« no previous file with comments | « content/common/sandbox_linux/bpf_ppapi_policy_linux.cc ('k') | content/common/sandbox_linux/bpf_utility_policy_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698