| OLD | NEW |
| 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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ |
| 7 | 7 |
| 8 #include <endian.h> | 8 #include <endian.h> |
| 9 #include <errno.h> | 9 #include <errno.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include <unistd.h> | 35 #include <unistd.h> |
| 36 | 36 |
| 37 #include <algorithm> | 37 #include <algorithm> |
| 38 #include <limits> | 38 #include <limits> |
| 39 #include <map> | 39 #include <map> |
| 40 #include <utility> | 40 #include <utility> |
| 41 #include <vector> | 41 #include <vector> |
| 42 | 42 |
| 43 #ifndef SECCOMP_BPF_STANDALONE | 43 #ifndef SECCOMP_BPF_STANDALONE |
| 44 #include "base/basictypes.h" | 44 #include "base/basictypes.h" |
| 45 #include "base/eintr_wrapper.h" | |
| 46 #include "base/logging.h" | 45 #include "base/logging.h" |
| 46 #include "base/posix/eintr_wrapper.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 #if defined(SECCOMP_BPF_VALGRIND_HACKS) | 49 #if defined(SECCOMP_BPF_VALGRIND_HACKS) |
| 50 #ifndef SECCOMP_BPF_STANDALONE | 50 #ifndef SECCOMP_BPF_STANDALONE |
| 51 #include "base/third_party/valgrind/valgrind.h" | 51 #include "base/third_party/valgrind/valgrind.h" |
| 52 #endif | 52 #endif |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 | 55 |
| 56 // The Seccomp2 kernel ABI is not part of older versions of glibc. | 56 // The Seccomp2 kernel ABI is not part of older versions of glibc. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 static Traps *traps_; | 336 static Traps *traps_; |
| 337 static TrapIds trapIds_; | 337 static TrapIds trapIds_; |
| 338 static ErrorCode *trapArray_; | 338 static ErrorCode *trapArray_; |
| 339 static size_t trapArraySize_; | 339 static size_t trapArraySize_; |
| 340 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); | 340 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 } // namespace | 343 } // namespace |
| 344 | 344 |
| 345 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ | 345 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_H__ |
| OLD | NEW |