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

Side by Side Diff: sandbox/linux/bpf_dsl/bpf_dsl.cc

Issue 635223006: bpf_dsl: Move {Bool,Result}ExprImpl definition into separate header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl.h ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "sandbox/linux/bpf_dsl/bpf_dsl.h" 5 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h"
13 #include "sandbox/linux/seccomp-bpf/errorcode.h" 14 #include "sandbox/linux/seccomp-bpf/errorcode.h"
14 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 15 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
15 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h" 16 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h"
16 17
17 namespace sandbox { 18 namespace sandbox {
18 namespace bpf_dsl { 19 namespace bpf_dsl {
19 namespace { 20 namespace {
20 21
21 class AllowResultExprImpl : public internal::ResultExprImpl { 22 class AllowResultExprImpl : public internal::ResultExprImpl {
22 public: 23 public:
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 398 }
398 return InvalidSyscall()->HasUnsafeTraps(); 399 return InvalidSyscall()->HasUnsafeTraps();
399 } 400 }
400 401
401 ResultExpr SandboxBPFDSLPolicy::Trap(Trap::TrapFnc trap_func, const void* aux) { 402 ResultExpr SandboxBPFDSLPolicy::Trap(Trap::TrapFnc trap_func, const void* aux) {
402 return bpf_dsl::Trap(trap_func, aux); 403 return bpf_dsl::Trap(trap_func, aux);
403 } 404 }
404 405
405 } // namespace bpf_dsl 406 } // namespace bpf_dsl
406 } // namespace sandbox 407 } // namespace sandbox
408
409 template class scoped_refptr<const sandbox::bpf_dsl::internal::BoolExprImpl>;
410 template class scoped_refptr<const sandbox::bpf_dsl::internal::ResultExprImpl>;
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl.h ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698