From 15367d0a63dd2bfd43d473bb11cd1bf34dea212d Mon Sep 17 00:00:00 2001 From: "msneck@google.com" Date: Tue, 30 Mar 2010 16:21:18 +0000 Subject: 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 --- base/rand_util_c.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base') 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); -- cgit v1.1