summaryrefslogtreecommitdiffstats
path: root/base/rand_util_c.h
diff options
context:
space:
mode:
authormsneck@google.com <msneck@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 16:21:18 +0000
committermsneck@google.com <msneck@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 16:21:18 +0000
commit15367d0a63dd2bfd43d473bb11cd1bf34dea212d (patch)
treebfe018b815b0407de91d55c46b449d1bf2ea5b59 /base/rand_util_c.h
parent235e78fa9d5cc04809cef1a9d1b85b20a58eeb6b (diff)
downloadchromium_src-15367d0a63dd2bfd43d473bb11cd1bf34dea212d.zip
chromium_src-15367d0a63dd2bfd43d473bb11cd1bf34dea212d.tar.gz
chromium_src-15367d0a63dd2bfd43d473bb11cd1bf34dea212d.tar.bz2
1. Create a new sandbox type which allows access to Unix sockets in the Mac
renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "--nosandbox" flag when running Mac tests. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1234003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util_c.h')
-rw-r--r--base/rand_util_c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/rand_util_c.h b/base/rand_util_c.h
index 5a0bf73..20e3082 100644
--- a/base/rand_util_c.h
+++ b/base/rand_util_c.h
@@ -9,6 +9,9 @@
extern "C" {
#endif
+// Note this *should* be in "namespace base" but the function is needed
+// from C so namespaces cannot be used.
+
// Returns an FD for /dev/urandom, possibly pre-opened before sandboxing
// was switched on. This is a C function so that Native Client can use it.
int GetUrandomFD(void);