fchdir(d); chroot(".");
in pre_config or open_logs hook??
i while try it that...
From: Mathieu CARBONNEAUX [mailto:[EMAIL PROTECTED]
To: [email protected]
Sent: Sun, 22 Oct 2006 16:00:25 +0200
Subject: Re: [EMAIL PROTECTED] Re: child_init hook...
very interesting !!!
il while try to implement on base of mod_chroot module...
ok i imagine that make :
d=open("/", O_RDONLY); chroot("/new/root");
in post_config hook
and the close in child_init...
but how to make reload phase... what is the good hook to do that! or how to detect reload...
Thanks,
Mathieu
In the main apache:
d=open("/", O_RDONLY); chroot("/new/root");
At reload time:
fchdir(d); chroot("."); do_reload(); chroot("/new/root");
At child_init:
close(d);
Torsten
