From: Justin Erenkrantz Date: Tue, 30 Aug 2005 21:21:18 +0000 (+0000) Subject: mod_cgid: Refuse to work on Solaris 10 due to OS bugs. X-Git-Tag: 2.3.0~3039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8c7721962327fe3aa00ac46a870f58deed635e;p=thirdparty%2Fapache%2Fhttpd.git mod_cgid: Refuse to work on Solaris 10 due to OS bugs. PR: 34264 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@264866 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index f46c4ac80c7..472853c7511 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] + *) mod_cgid: Refuse to work on Solaris 10 due to OS bugs. PR 34264. + [Justin Erenkrantz] + *) SECURITY: CAN-2005-2700 (cve.mitre.org) mod_ssl: Fix a security issue where "SSLVerifyClient" was not enforced in per-location context if "SSLVerifyClient optional" diff --git a/modules/generators/config5.m4 b/modules/generators/config5.m4 index d4f6282194f..4a3c6253ce5 100644 --- a/modules/generators/config5.m4 +++ b/modules/generators/config5.m4 @@ -14,7 +14,26 @@ APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [ if ap_mpm_is_threaded; then # if we are using a threaded MPM, we will get better performance with # mod_cgid, so make it the default. - APACHE_MODULE(cgid, CGI scripts, , , yes) + APACHE_MODULE(cgid, CGI scripts, , , yes, [ + case $host in + *-solaris2*) + case `uname -r` in + 5.10) + dnl Eventually, 120664 will be released for Solaris 10. + dnl At that point, we can do a showrev -p search for that patch. + dnl Solaris 11 (next release) as of snv_19 doesn't have this problem. + dnl It may be possible to use /kernel/drv/tl from later releases. + AC_MSG_ERROR([mod_cgid is non-functional on Solaris 10. +This means that threaded MPMs (such as worker MPM) with CGIs will not work. +This problem is due to an OS bug with AF_UNIX sockets. +Patches are forthcoming from Sun. +Please run configure with --disable-cgid or switch to the prefork MPM. +For more info: ]) + ;; + esac + ;; + esac + ]) APACHE_MODULE(cgi, CGI scripts, , , no) else # if we are using a non-threaded MPM, it makes little sense to use