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

Side by Side Diff: sandbox/linux/seccomp-bpf/syscall_iterator.cc

Issue 12223109: SECCOMP-BPF: Refactor the BPF sandbox API to use fewer "static" fields and methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure unnamed namespaces are always top-level Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/seccomp-bpf/sandbox_bpf.h" 5 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
6 #include "sandbox/linux/seccomp-bpf/port.h"
6 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h" 7 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h"
7 8
8 namespace playground2 { 9 namespace playground2 {
9 10
10 uint32_t SyscallIterator::Next() { 11 uint32_t SyscallIterator::Next() {
11 if (done_) { 12 if (done_) {
12 return num_; 13 return num_;
13 } 14 }
14 15
15 uint32_t val; 16 uint32_t val;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 (num >= MIN_GHOST_SYSCALL && num <= MAX_SYSCALL); 86 (num >= MIN_GHOST_SYSCALL && num <= MAX_SYSCALL);
86 } 87 }
87 #else 88 #else
88 bool SyscallIterator::IsArmPrivate(uint32_t) { 89 bool SyscallIterator::IsArmPrivate(uint32_t) {
89 return false; 90 return false;
90 } 91 }
91 #endif 92 #endif
92 93
93 } // namespace 94 } // namespace
94 95
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698