From 7c8c7721962327fe3aa00ac46a870f58deed635e Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Tue, 30 Aug 2005 21:21:18 +0000 Subject: [PATCH] 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 --- CHANGES | 3 +++ modules/generators/config5.m4 | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f46c4ac80c..472853c751 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 d4f6282194..4a3c6253ce 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 -- 2.40.0