DescriptionGive base::SharedMemory::CreateAnonymous an executable flag
NaCl on Mac and Linux needs to create a shared memory object that it can
later make executable with mprotect. Express this need in the interface it
uses. Add a test that pages mapped from such an object can later be passed
to mprotect with PROT_EXEC.
This lays the groundwork for a later change that will sometimes use a
different method to allocate an object on Linux when it needs to be
executable. On some Linux distributions, shm_open yields objects whose
mappings cannot be made executable.
BUG= http://code.google.com/p/chromium/issues/detail?id=103377
TEST= SharedMemory.AnonymousExecutable
R=mark@chromium.org,jam@chromium.org,amit@chromium.org,ben@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112570
Patch Set 1 #
Total comments: 1
Patch Set 2 : new interface, misc call sites unchanged #
Total comments: 5
Patch Set 3 : review changes #
Total comments: 1
Messages
Total messages: 15 (0 generated)
|