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

Unified Diff: base/rand_util_posix.cc

Issue 669055: Add support for running the NaCl plugin in the Linux SUID sandbox (Closed)
Patch Set: Removed tab char; removed change to test (which assumed the NaCl-side change) Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/rand_util_c.h ('k') | chrome/browser/renderer_host/render_sandbox_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/rand_util_posix.cc
diff --git a/base/rand_util_posix.cc b/base/rand_util_posix.cc
index c65551df50134b08f184fca51423860c2de61003..43dfd1e7904914e71eea5eb235526ab42cecde48 100644
--- a/base/rand_util_posix.cc
+++ b/base/rand_util_posix.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/rand_util.h"
+#include "base/rand_util_c.h"
#include <errno.h>
#include <fcntl.h>
@@ -54,3 +55,7 @@ uint64 RandUint64() {
}
} // namespace base
+
+int GetUrandomFD(void) {
+ return g_urandom_fd.Pointer()->fd();
+}
« no previous file with comments | « base/rand_util_c.h ('k') | chrome/browser/renderer_host/render_sandbox_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698