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

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Old-Topics: [pcre-dev] [Bug 1749] New: PCRE-JITted code should be executed from non-writable memory to obey execmem SELinux restriction
Subject: [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 #35 from Christian Persch (GNOME) <chpe@???> ---
(In reply to Christoph Michael Becker from comment #31)
> (In reply to Zoltan Herczeg from comment #29)
> > Ok I will try to do these requests. Will take time. Is ./ a good idea to
> > create a temporary file? What other projects do btw?
>
> I don't think that creating a temporary file in ./ is a good idea. For
> instance, if the process crashes before the file is deleted, the file would
> remain, what might be a particular issue on the Web.


Usually the way this works is you create the tmpfile and immediately unlink it,
so if the process terminates it's not kept lying around.

And on linux, you should use O_TMPFILE which gives you a file that's *never*
been linked.

I do concur that tmp files should only be created in tmp directories, not
$HOME.

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