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

Unified Diff: content/browser/renderer_host/render_sandbox_host_linux.cc

Issue 8585002: Give base::SharedMemory::CreateAnonymous an executable flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: content/browser/renderer_host/render_sandbox_host_linux.cc
diff --git a/content/browser/renderer_host/render_sandbox_host_linux.cc b/content/browser/renderer_host/render_sandbox_host_linux.cc
index 0ce5d884229326b01ed6830ccd99c0187ef0f2f7..2b0a27f1bdd99979c9929e309302ee5a183f420d 100644
--- a/content/browser/renderer_host/render_sandbox_host_linux.cc
+++ b/content/browser/renderer_host/render_sandbox_host_linux.cc
@@ -372,9 +372,12 @@ class SandboxIPCProcess {
uint32_t shm_size;
if (!pickle.ReadUInt32(&iter, &shm_size))
return;
+ bool executable;
+ if (!pickle.ReadBool(&iter, &executable))
+ return;
int shm_fd = -1;
base::SharedMemory shm;
- if (shm.CreateAnonymous(shm_size))
+ if (shm.CreateAnonymous(shm_size, executable))
shm_fd = shm.handle().fd;
Pickle reply;
SendRendererReply(fds, reply, shm_fd);

Powered by Google App Engine
This is Rietveld 408576698