[pcre-dev] [Bug 2010] sljitProtExecAllocator temp file descr…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2010] sljitProtExecAllocator temp file descriptor isn't CLOEXEC
https://bugs.exim.org/show_bug.cgi?id=2010

--- Comment #3 from Christian Persch (GNOME) <chpe@???> ---
Created attachment 968
--> https://bugs.exim.org/attachment.cgi?id=968&action=edit
patch series for comment

I've created a patch series that implements what I think needs to be done for
these temp files; it contains the fix for the issue in this bug but also more
things (if you prefer, I can file separate bugs for each):

* When available, use mkostemp for O_CLOEXEC
* When available, use O_TMPFILE to get a file that's never been linked (this
closes the tiny window between creating the file and unlinking it)
* Don't hardcode /tmp but use the same sequence as tempnam: TMPDIR env var (if
secure_getenv is available), fallback to P_tmpdir macro, last-ditch fallback to
/tmp.

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