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

Unified Diff: src/shared/imc/nacl_imc_unistd.cc

Issue 669056: Support running NaCl in Chromium's Linux SUID sandbox (Closed)
Patch Set: 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 | « no previous file | src/shared/platform/linux/nacl_secure_random.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/imc/nacl_imc_unistd.cc
diff --git a/src/shared/imc/nacl_imc_unistd.cc b/src/shared/imc/nacl_imc_unistd.cc
index 49bf44274deca016dafc08a58002d1f03d800a0e..250ca1cd1936c5f85ae57d992a0bf8faf70d2c67 100644
--- a/src/shared/imc/nacl_imc_unistd.cc
+++ b/src/shared/imc/nacl_imc_unistd.cc
@@ -32,6 +32,10 @@
#include "native_client/src/shared/imc/nacl_imc.h"
+#if defined(CHROMIUM_BUILD) && NACL_LINUX
+#include "chrome/renderer/renderer_sandbox_support_linux.h"
+#endif
+
namespace nacl {
namespace {
@@ -86,6 +90,9 @@ Handle CreateMemoryObject(size_t length) {
return m;
}
if (errno != EEXIST) {
+#if defined(CHROMIUM_BUILD) && NACL_LINUX
+ return MakeSharedMemorySegmentViaIPC(length);
gregoryd 2010/03/04 17:37:45 Do we know that shm_open will fail in the sandbox?
+#endif
return -1;
}
}
« no previous file with comments | « no previous file | src/shared/platform/linux/nacl_secure_random.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698