1
0
mirror of https://github.com/apache/httpd.git synced 2025-06-03 10:42:03 +03:00

335 Commits

Author SHA1 Message Date
Jeff Trawick
4d8f4c26d6 *) SECURITY: CAN-2004-0174 (cve.mitre.org)
Fix starvation issue on listening sockets where a short-lived
     connection on a rarely-accessed listening socket will cause a
     child to hold the accept mutex and block out new connections until
     another connection arrives on that rarely-accessed listening socket.
     With Apache 2.x there is no performance concern about enabling the
     logic for platforms which don't need it, so it is enabled everywhere
     except for Win32.  [Jeff Trawick]

(already in 2.0.49, propagating to mirrors now)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103029 13f79535-47bb-0310-9956-ffa450edef68
2004-03-19 11:16:03 +00:00
Joe Orton
6895aee838 * os/unix/unixd.c (unixd_accept): Eliminate now-redundant call to
apr_os_sock_get(); let APR check for accept returning zero on TPF.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102925 13f79535-47bb-0310-9956-ffa450edef68
2004-03-10 21:06:11 +00:00
André Malo
eeb57c17ad fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:40:53 +00:00
André Malo
e0d2db5107 fix copyright dates according to the first check in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102579 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 13:13:10 +00:00
André Malo
7b655748ae fix copyright dates according to the first check in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102578 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 13:09:10 +00:00
André Malo
efd6b024e8 fix copyright dates according to the first check in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102577 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 13:05:40 +00:00
André Malo
04bb31cc9c fix copyright dates according to the first check in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102576 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 13:03:58 +00:00
André Malo
4f02cb1e18 apply Apache License, Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 22:58:42 +00:00
Jeff Trawick
01da1159b3 Unix MPMs: Stop dropping connections when the file descriptor
is at least FD_SETSIZE.

That isn't a problem for most users (since poll() is widespread).
On old boxes where select() must be used by APR, APR needs to fail
operations that don't work with such fds.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102419 13f79535-47bb-0310-9956-ffa450edef68
2004-01-27 15:19:58 +00:00
André Malo
fb07607180 update license to 2004.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 13:26:26 +00:00
Jeff Trawick
3b6b4b4325 fix a compile failure with recent z/OS and picky settings for compiler/
library

("unsigned short" is more portable than "ushort")


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101690 13f79535-47bb-0310-9956-ffa450edef68
2003-11-03 17:30:45 +00:00
Martin Kraemer
46941ae3b8 one_process is not a global variable
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101197 13f79535-47bb-0310-9956-ffa450edef68
2003-09-08 16:39:46 +00:00
Jeff Trawick
aa21671e13 switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101154 13f79535-47bb-0310-9956-ffa450edef68
2003-09-03 19:27:12 +00:00
Jeff Trawick
8f0cd048e0 Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms().  Allow the functions to be
called for any type of mutex.

This resolves a fatal problem with mod_rewrite on systems where
APR uses flock-based mutex.

It simplifies mod_ssl as well, which had special logic to perform
the chown().  It fixed an init error with mod_ssl on systems where
flock is used when the user had no SSLMutex directive.

The Unix MPMs continue to call unixd_set_global|proc_mutex_perms()
only for SysV sems.  There is no permission problem with flock-based
accept mutexes since the child init logic for the MPMs is done
prior to switching identity.

PR:              20312


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100189 13f79535-47bb-0310-9956-ffa450edef68
2003-06-07 19:50:01 +00:00
Bradley Nicholes
ce67a0c64a Fixing up the NetWare headers to be compatible with the GNU compiler
Submitted by: G�nter Knauf <gk@gknw.de>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100116 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 22:36:15 +00:00
Martin Kraemer
ca4f07bcac Porting to BS2000: the antique interface (BS2000Account) no longer exists
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99747 13f79535-47bb-0310-9956-ffa450edef68
2003-05-09 21:37:06 +00:00
Greg Ames
b906d05f70 Linux 2.4+: enable coredumps when Apache is started as root if
CoreDumpDirectory is explicitly coded


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98908 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 21:48:58 +00:00
William A. Rowe Jr
a45632ba37 *) Introduce debugging symbols for Win32 release builds, both .pdb
and .dbg files (older debuggers and Dr. Watson-type utilities
     on WinNT or Win9x don't support the newer .pdb flavor.)
     [Allen Edwards, William Rowe]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98596 13f79535-47bb-0310-9956-ffa450edef68
2003-02-07 21:30:53 +00:00
André Malo
742af25096 finished that boring job:
update license to 2003.

Happy New Year! ;-))


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
2003-02-03 17:53:28 +00:00
William A. Rowe Jr
89d2be9245 Integrate mod_ident with the Win32 build.
Submitted by David Shane Holden <dpejesh@yahoo.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98386 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 21:38:50 +00:00
Bradley Nicholes
cd0dc38dad Reduce the number of parameters on the event callback to avoid a protected
mode issue


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98299 13f79535-47bb-0310-9956-ffa450edef68
2003-01-16 23:31:35 +00:00
Bradley Nicholes
85a2ec41c6 Added a required parameter to RegisterForEventNotification() to allow the
function to be called in protected address space.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98237 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 15:43:23 +00:00
Bill Stoddard
0ad3752a5d Fix win32 compile break due to file name changes in apr/include/arch/win32
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98204 13f79535-47bb-0310-9956-ffa450edef68
2003-01-08 19:29:05 +00:00
Bradley Nicholes
60c843a69a Register for the SERVERDOWN event to allow Apache to shutdown gracefully
when the NetWare OS is shutdown


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97898 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 19:40:52 +00:00
Martin Kraemer
79ddea131d To be on the safe side...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97732 13f79535-47bb-0310-9956-ffa450edef68
2002-12-02 13:40:27 +00:00
William A. Rowe Jr
6085062991 Must have symbolics for util_ldap/mod_auth_ldap base addresses.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97730 13f79535-47bb-0310-9956-ffa450edef68
2002-12-01 23:38:44 +00:00
Bradley Nicholes
a3fc322d82 Don't hold the Apache screen open when it exits with an error if all of the error
messages are going to a file anyway.  In other words, don't hold the screen
open if the -E <filename> command line parameter is used.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97507 13f79535-47bb-0310-9956-ffa450edef68
2002-11-13 21:14:02 +00:00
William A. Rowe Jr
e3f5de91bc A comment which no longer applies (proper AP_DECLARE_DATA voided the
disclaimer.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97460 13f79535-47bb-0310-9956-ffa450edef68
2002-11-08 16:29:19 +00:00
William A. Rowe Jr
fde1ff1bf8 Well that was a little borked, if you were having stack problems using
logio the missing pre_connection hook declartion could have something
  to do with it.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97379 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 18:07:52 +00:00
William A. Rowe Jr
d387982c7a Restrict Win32 API replacements from interfering with 3rd-party builders
of add-ons or any other consumer of win32's os.h.  PR 12779.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96875 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 16:42:02 +00:00
William A. Rowe Jr
807087a5e2 Forgot a file from the build overhaul for aaa ... need all those new
modules mapped into memory.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96809 13f79535-47bb-0310-9956-ffa450edef68
2002-09-14 16:34:16 +00:00
Bradley Nicholes
ebb7183a7b Removed access_module, auth_module and added authz_host_module in
order to comply with the new auth module architecture


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96792 13f79535-47bb-0310-9956-ffa450edef68
2002-09-13 21:43:22 +00:00
Bradley Nicholes
0071d5f8ed Avoid calling the real exit() function when the macro exit() is called outside of
a code block.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96627 13f79535-47bb-0310-9956-ffa450edef68
2002-09-03 22:00:36 +00:00
William A. Rowe Jr
e13b336392 Resolve more handle leaks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96256 13f79535-47bb-0310-9956-ffa450edef68
2002-07-31 06:16:47 +00:00
William A. Rowe Jr
d1bf15268a Refactor out the child behavior from mpm_winnt. This is the first
step in making a legible multiprocess windows mpm, or at least
  structuring the code to always begin a new child as an old one is
  going to die soon, rather than waiting for it's final dying breath.

  The only code that had to be affected [due to the split and general
  structure of the code] was merging the set_listeners_noninherited()
  code directly into the get_listeners_from_parent code, and also into
  the apr socket.c code for winnt.  For the most part the code splits
  rather nicely.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96221 13f79535-47bb-0310-9956-ffa450edef68
2002-07-29 05:06:20 +00:00
Bradley Nicholes
73f7934fd4 Hold the Apache screen open on NetWare if exit() is called for any reason
during initialization and configuration of the main Apache process.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96172 13f79535-47bb-0310-9956-ffa450edef68
2002-07-24 15:17:56 +00:00
William A. Rowe Jr
ffbad94d87 No reason not to build charset_lite anymore on Win32
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96122 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 08:51:48 +00:00
William A. Rowe Jr
4008f0e863 Try this AGAIN. Move ap_regkey.h to include/ and assure that this time,
it contains defined(WIN32)||defined(DOXYGEN) requirements to prevent the
  other platform exports from barfing.  Please ack if this works for you.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96019 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 19:57:02 +00:00
William A. Rowe Jr
5614e5b0be Fix a const'ness conflict.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95948 13f79535-47bb-0310-9956-ffa450edef68
2002-07-03 00:17:40 +00:00
William A. Rowe Jr
f4a72a6b00 Never trust Bill when he cuts and pastes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95938 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 19:07:48 +00:00
William A. Rowe Jr
ad165f3ef7 Introduce a _raw_set/_raw_get for regkey values. Takes care of all the
oddballs, and lets us simplify _array_set/_array_get.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95936 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 19:02:00 +00:00
William A. Rowe Jr
48805e658d Add ap_os_proc_filepath and clean up the win32/os.h file structure.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95927 13f79535-47bb-0310-9956-ffa450edef68
2002-07-01 17:48:47 +00:00
Jeff Trawick
1149429227 fix compile breakage with IBM's xlc compiler caused by the
attempt to lose const on progname

strrchr was not the real library function that takes a
const parameter; instead, strrchr was the Apache macro which
makes it clear that const will be lost


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95900 13f79535-47bb-0310-9956-ffa450edef68
2002-06-27 10:47:49 +00:00
Ryan Bloom
b274510242 Fix a long-standing bug in 2.0, CGI scripts were being called
with relative paths instead of absolute paths.  Apache 1.3 used
absolute paths for everything except for SuExec, this brings back
that standard.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95899 13f79535-47bb-0310-9956-ffa450edef68
2002-06-27 06:07:58 +00:00
William A. Rowe Jr
b7f68a9349 Doxygenate the rest of this header. Had I not overlooked the #ifdef WIN32
I probably wouldn't have had any issues parking this file in httpd/include


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95894 13f79535-47bb-0310-9956-ffa450edef68
2002-06-27 03:54:50 +00:00
William A. Rowe Jr
d545963de7 Add in the other complex ap_regkey_value_foo() fns and move ap_regkey.h
Out Of The Way of exports stumbling onto it!!!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95879 13f79535-47bb-0310-9956-ffa450edef68
2002-06-24 07:50:36 +00:00
William A. Rowe Jr
14111fd4ca Introduce win32 registry handling through a very apr-ish interface.
Deals with apr utf-8 encoding of filesystem values, so we preserve
  strings in any locality or nationalized flavor of WinNT, and avoid
  the gunk for Win9x.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95875 13f79535-47bb-0310-9956-ffa450edef68
2002-06-24 04:50:41 +00:00
William A. Rowe Jr
3f18121201 Finish the -w keep-console-open-on-error patch.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95869 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 10:24:07 +00:00
Bradley Nicholes
973b229950 Implemented ap_os_create_privileged_process() for NetWare which simply maps to
apr_proc_create()


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95446 13f79535-47bb-0310-9956-ffa450edef68
2002-05-31 17:17:40 +00:00
Bradley Nicholes
d23f9673bc Added mod_cgi and mod_netware as built in module in the NetWare build
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95445 13f79535-47bb-0310-9956-ffa450edef68
2002-05-31 17:16:09 +00:00