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

Side by Side Diff: sandbox/linux/services/libc_urandom_override.cc

Issue 11366229: Move eintr_wrapper.h from base to base/posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/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
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
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf.h ('k') | sandbox/linux/suid/client/setuid_sandbox_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698