DescriptionAdaptively use temp dir instead of /dev/shm for executable shmem file on Linux
On some Linux systems, files from /dev/shm cannot have PROT_EXEC applied to
their mappings. This depends on picayune setup details that vary between
distributions and kernels and could vary between installations. So just
use an empirical test of whether it works or not, and fall back to using
generic temporary space instead of /dev/shm for the executable case if needed.
BUG= http://code.google.com/p/chromium/issues/detail?id=103377
TEST= SharedMemory.AnonymousExecutable with /dev/shm mounted noexec
R=mark@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113228
Patch Set 1 #
Total comments: 2
Patch Set 2 : clean up per review #
Messages
Total messages: 5 (0 generated)
|