[pcre-dev] [Bug 1749] PCRE-JITted code should be executed fr…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumptes vells: [pcre-dev] [Bug 1749] New: PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
Assumpte: [pcre-dev] [Bug 1749] PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
https://bugs.exim.org/show_bug.cgi?id=1749

--- Comment #6 from Thomas Klausner <tk@???> ---
I asked the question on a NetBSD mailing list and got a reply:
https://mail-index.netbsd.org/current-users/2016/11/15/msg030491.html

Basically: Create a temporary file (mkstemp should make sure noone but you can
read it), unlink it (to make sure nothing can happen and have automatic
cleanup).
Then mmap it once writable to edit the JIT code; when you're finished, mmap it
execable instead.

--
You are receiving this mail because:
You are on the CC list for the bug.