diff options
author | Sergei Trofimovich <slyfox@community.haskell.org> | 2011-02-08 21:21:40 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@community.haskell.org> | 2011-02-08 21:21:40 +0000 |
commit | 7bb9d7760929d1a0c4bbf37531919fe8169a80c7 (patch) | |
tree | de8af3a164326a977743cd3c433c0d9fad66befa /libraries | |
parent | fc2fdad3793706eeea4c8083551f00c2fb6ab812 (diff) | |
download | haskell-7bb9d7760929d1a0c4bbf37531919fe8169a80c7.tar.gz |
libffi: backport incorrect detection of selinux
This patch unbreaks ghci on GRSEC kernels hardened with
TPE (Trusted Path Execution) protection.
TPE forbids mmap('rwx') files opened for writes:
fd = open (a_file_in_tmp, O_RDWR);
mmap (..., PROT_READ | PROT_WRITE | PROT_EXEC, fd);
while allows anonymous RWX mappings:
mmap (...MAP_ANONYMOUS , PROT_READ | PROT_WRITE | PROT_EXEC, -1);
Thanks to klondike for finding it out.
The result of a horrible typo.
(unreleased yet) upstream also has the patch:
http://github.com/atgreen/libffi/commit/eaf444eabc4c78703c0f98ac0197b1619c1b1bef
Diffstat (limited to 'libraries')
0 files changed, 0 insertions, 0 deletions