Commit Graph

16 Commits

Author SHA1 Message Date
7720a70dc4 axe the remaining checks of AP_MPM_WANT_foo to see what code to generate
MPMs no longer provide those definitions

(the signal server support is an interesting problem, since it has to be known before loading
loading the MPM)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758014 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:52:10 +00:00
736d659de0 use a local module header file to store the function prototype
for ap_unixd_setup_child() that is used outside this module.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@739487 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 01:46:56 +00:00
2288718073 name protect unixd_setup_child and restore its prototype to unixd.h
If someone wants to find a better place for it, then feel free to
so so only if you compile with -Werror before committing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@739151 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 02:51:32 +00:00
a73acf02f6 API Cleanup in preperation for 2.4.x, make sure all exported functions or variables contain an ap_ prefix.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@722399 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 08:13:36 +00:00
993bbf6f45 Remove c99 style comment.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@721763 13f79535-47bb-0310-9956-ffa450edef68
2008-11-30 05:49:23 +00:00
68512c237c Note that the current mishmash is ugly... hope to
find time to restart working on the cleanup I started
at ACUS, but got sidetracked with confusion on where the
divisions actually were...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@720017 13f79535-47bb-0310-9956-ffa450edef68
2008-11-23 17:55:32 +00:00
0d1be6231d mod_unixd: use APR_HOOK_MIDDLE for drop_privileges.
We're the canonical module for that hook!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@712347 13f79535-47bb-0310-9956-ffa450edef68
2008-11-08 03:18:13 +00:00
701bb560f9 * Move code to a more conveniant place
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@711227 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 11:35:21 +00:00
368d9bb335 Further unixd hacks to remove duplication between old-unixd and mod_unixd,
and get it working with old MPMS[1] + mod_unixd.  It's still an uneasy
split, as some modules (mod_cgid, suexec)[2] also use unixd.
More thinking+hacking due.

[1] Should be prefork/worker/event, but only worker is tested.
[2] cgid is OK, suexec is untested.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@711146 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 00:44:56 +00:00
a1252f96e3 Wrap the global count of privileges handlers operating. Silence grumblers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@710037 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 11:37:03 +00:00
72119d92f5 Switch all unix MPMs to use drop_privileges hook (mod_unixd) for startup
and add a flag to prevent running without any module taking responsibility
for managing system privileges!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709993 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 00:46:54 +00:00
83c28b52fe Maintain the assumption that uids are long (as is done
with other code sections), as well as be aware of
signs.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709406 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 13:35:46 +00:00
f3ae98d6b2 Make unixd_set_user a local static function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709238 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 20:29:28 +00:00
08dddebd7c Change the child_init hook to a drop_privileges hook for mod_unixd.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709067 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 00:57:45 +00:00
0519c3836f Strip down mod_unixd to only do chroot and changing the UID.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709058 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 00:36:39 +00:00
8715fd2622 Move mod_unixd to arch/unix.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@709050 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 00:08:58 +00:00