Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace valloc() with mmap() when allocating executable pages for cal…
…lbacks Under linux, if SELinux is enabled (i.e. not permisive or disabled), then the heap memory allocated with vmalloc() and marked as executable with mprotect() will fail. In order to have this work with SELinux enabled (and not providing a module policy file to allow execheap) mmap() should be used. Note, it might be possible to remove the stdlib.h and sys/mman.h header file references.
- Loading branch information
1 parent
df9064a
commit 8c4b25a
Showing
2 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters