| 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 #include <unistd.h> |
| 12 | 12 |
| 13 #include "base/eintr_wrapper.h" | |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/posix/eintr_wrapper.h" |
| 15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
| 16 | 16 |
| 17 // Note: this file is used by the zygote and nacl_helper. | 17 // Note: this file is used by the zygote and nacl_helper. |
| 18 | 18 |
| 19 namespace sandbox { | 19 namespace sandbox { |
| 20 | 20 |
| 21 // 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 |
| 22 // with intercepting libc calls. | 22 // with intercepting libc calls. |
| 23 #if !defined(CHROMIUM_SELINUX) | 23 #if !defined(CHROMIUM_SELINUX) |
| 24 | 24 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 CHECK(g_libc_xstat64); | 158 CHECK(g_libc_xstat64); |
| 159 return g_libc_xstat64(version, path, buf); | 159 return g_libc_xstat64(version, path, buf); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 #endif // !ADDRESS_SANITIZER | 163 #endif // !ADDRESS_SANITIZER |
| 164 | 164 |
| 165 #endif // !CHROMIUM_SELINUX | 165 #endif // !CHROMIUM_SELINUX |
| 166 | 166 |
| 167 } // namespace content | 167 } // namespace content |
| OLD | NEW |