httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <i...@bnoordhuis.nl>
Subject Re: ownership & mmaped files - I have to be missing something...
Date Thu, 11 Nov 2010 08:16:09 GMT
On Thu, Nov 11, 2010 at 08:28, Mike Meyer
<mwm-keyword-apache.b9a3c0@mired.org> wrote:
> Is there a hook that runs after config in the parent, but as the
> unprivileged id that I should be using? I couldn't find one (either in

There isn't one, setuid() is called right before the child_init hook.

Having said that, can't you open() the file in the parent and have the
children mmap() the fd into memory? Just make sure it isn't marked as
FD_CLOEXEC.

Mime
View raw message