Add support for running the NaCl plugin in the Linux SUID sandbox

 * Add a function for getting the pre-opened FD for /dev/urandom.
   This needs to be a C function because it will be used by
   nacl_secure_random.c.
 * Add an IPC message for creating shared memory segments, since
   /dev/shm is not available inside the sandbox.

The corresponding NaCl change is http://codereview.chromium.org/669056

BUG=36676
TEST=nacl_ui_tests in conjunction with NaCl changes

http://codereview.chromium.org/669055

Patch by Mark Seaborn.

Signed-off-by: Adam Langley

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40647 0039d316-1c4b-4281-b951-d872f2087c98
6 files changed