Index: chrome/nacl/nacl_helper_linux.cc |
diff --git a/chrome/nacl/nacl_helper_linux.cc b/chrome/nacl/nacl_helper_linux.cc |
index 11471e58a7d791b0c6c44fd920c4457d4d5546a7..7a644ac7e687517f1f152e6ad187df1e7069eb0b 100644 |
--- a/chrome/nacl/nacl_helper_linux.cc |
+++ b/chrome/nacl/nacl_helper_linux.cc |
@@ -25,6 +25,7 @@ |
#include "base/posix/unix_domain_socket.h" |
#include "base/rand_util.h" |
#include "chrome/nacl/nacl_listener.h" |
+#include "content/zygote/zygote_libc_override_linux.h" |
#include "crypto/nss_util.h" |
#include "ipc/ipc_descriptors.h" |
#include "ipc/ipc_switches.h" |
@@ -200,6 +201,10 @@ int main(int argc, char *argv[]) { |
CommandLine::Init(argc, argv); |
base::AtExitManager exit_manager; |
base::RandUint64(); // acquire /dev/urandom fd before sandbox is raised |
+#if !defined(CHROMIUM_SELINUX) |
+ // Allows NSS to fopen() /dev/urandom. |
+ content::g_am_zygote_or_renderer = true; |
+#endif |
#if defined(USE_NSS) |
// Configure NSS for use inside the NaCl process. |
// The fork check has not caused problems for NaCl, but this appears to be |