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 #include "sandbox/linux/services/libc_urandom_override.h" | 5 #include "sandbox/linux/services/libc_urandom_override.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <pthread.h> | 8 #include <pthread.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
| 11 #include <unistd.h> |
11 | 12 |
12 #include "base/eintr_wrapper.h" | 13 #include "base/eintr_wrapper.h" |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
15 | 16 |
16 // Note: this file is used by the zygote and nacl_helper. | 17 // Note: this file is used by the zygote and nacl_helper. |
17 | 18 |
18 namespace sandbox { | 19 namespace sandbox { |
19 | 20 |
20 // With SELinux we can carve out a precise sandbox, so we don't have to play | 21 // With SELinux we can carve out a precise sandbox, so we don't have to play |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 CHECK(g_libc_xstat64); | 158 CHECK(g_libc_xstat64); |
158 return g_libc_xstat64(version, path, buf); | 159 return g_libc_xstat64(version, path, buf); |
159 } | 160 } |
160 } | 161 } |
161 | 162 |
162 #endif // !ADDRESS_SANITIZER | 163 #endif // !ADDRESS_SANITIZER |
163 | 164 |
164 #endif // !CHROMIUM_SELINUX | 165 #endif // !CHROMIUM_SELINUX |
165 | 166 |
166 } // namespace content | 167 } // namespace content |
OLD | NEW |