Changeset 1146
- Timestamp:
- Jun 3, 2009, 6:46:03 AM (16 years ago)
- Location:
- branches/fc11-dev/server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc11-dev/server/common/patches/httpd-2.2.x-sni.patch
r1115 r1146 971 971 Index: httpd-2.2.11/docs/manual/mod/mod_ssl.html.en 972 972 =================================================================== 973 --- httpd-2.2.11/docs/manual/mod/mod_ssl.html.en (revision 768863)974 +++ httpd-2.2.11/docs/manual/mod/mod_ssl.html.en (working copy)973 --- httpd-2.2.11/docs/manual/mod/mod_ssl.html.en 2008-08-20 19:02:48.000000000 -0400 974 +++ httpd-2.2.11/docs/manual/mod/mod_ssl.html.en 2009-06-03 05:33:23.000000000 -0400 975 975 @@ -75,6 +75,7 @@ to provide the cryptography engine.</p> 976 976 <li><img alt="" src="../images/down.gif" /> <a href="#sslrequiressl">SSLRequireSSL</a></li> … … 1026 1026 +<p class="apache">Copyright 2009 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> 1027 1027 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> 1028 </body></html> 1028 -</body></html> 1029 \ No newline at end of file 1030 +</body></html> -
branches/fc11-dev/server/common/patches/httpd-suexec-scripts.patch
r944 r1146 45 45 APACHE_HELP_STRING(--with-suexec-docroot,SuExec root directory),[ 46 46 AC_DEFINE_UNQUOTED(AP_DOC_ROOT, "$withval", [SuExec root directory] ) ] ) 47 --- httpd-2.2. 2/support/suexec.c.old 2006-04-21 21:53:06.000000000 -040048 +++ httpd-2.2. 2/support/suexec.c 2007-05-22 10:32:04.000000000 -040047 --- httpd-2.2.11/support/suexec.c.old 2008-11-30 10:47:31.000000000 -0500 48 +++ httpd-2.2.11/support/suexec.c 2009-06-03 05:16:45.000000000 -0400 49 49 @@ -30,6 +30,9 @@ 50 50 * … … 57 57 #include "ap_config.h" 58 58 #include "suexec.h" 59 @@ -46,6 +4 8,7 @@59 @@ -46,6 +49,7 @@ 60 60 #include <stdio.h> 61 61 #include <stdarg.h> … … 65 65 #ifdef HAVE_PWD_H 66 66 #include <pwd.h> 67 @@ -95,6 +9 8,7 @@67 @@ -95,6 +99,7 @@ 68 68 { 69 69 /* variable name starts with */ … … 141 141 gid_t gid; /* target group placeholder */ 142 142 char *target_uname; /* target user name */ 143 @@ -350,6 +4 06,20 @@143 @@ -350,6 +413,20 @@ 144 144 #endif /*_OSD_POSIX*/ 145 145 … … 162 162 * or attempts to back up out of the current directory, 163 163 * to protect against attacks. If any are 164 @@ -371,6 +44 1,7 @@164 @@ -371,6 +448,7 @@ 165 165 userdir = 1; 166 166 } … … 170 170 * Error out if the target username is invalid. 171 171 */ 172 @@ -45 0,7 +521,7 @@172 @@ -452,7 +530,7 @@ 173 173 * Error out if attempt is made to execute as root or as 174 174 * a UID less than AP_UID_MIN. Tsk tsk. … … 179 179 exit(107); 180 180 } 181 @@ -48 2,6 +553,21 @@181 @@ -484,6 +562,21 @@ 182 182 log_err("failed to setuid (%ld: %s)\n", uid, cmd); 183 183 exit(110); … … 201 201 /* 202 202 * Get the current working directory, as well as the proper 203 @@ -50 4,6 +588,21 @@203 @@ -506,6 +599,21 @@ 204 204 log_err("cannot get docroot information (%s)\n", target_homedir); 205 205 exit(112); … … 223 223 else { 224 224 if (((chdir(AP_DOC_ROOT)) != 0) || 225 @@ -53 0,15 +629,17 @@225 @@ -532,15 +640,17 @@ 226 226 /* 227 227 * Error out if cwd is writable by others. … … 242 242 exit(117); 243 243 } 244 @@ -54 6,10 +647,12 @@244 @@ -548,10 +658,12 @@ 245 245 /* 246 246 * Error out if the program is writable by others. … … 255 255 /* 256 256 * Error out if the file is setuid or setgid. 257 @@ -56 3,6 +666,7 @@257 @@ -565,6 +677,7 @@ 258 258 * Error out if the target name/group is different from 259 259 * the name/group of the cwd or the program. … … 263 263 (gid != dir_info.st_gid) || 264 264 (uid != prg_info.st_uid) || 265 @@ -57 4,12 +678,14@@265 @@ -576,16 +689,33 @@ 266 266 prg_info.st_uid, prg_info.st_gid); 267 267 exit(120); … … 279 279 exit(121); 280 280 } 281 @@ -606,6 +711,21 @@282 exit(122);283 }284 281 285 282 + if (is_static_extension(cmd)) { 286 283 + argv[2] = STATIC_CAT_PATH; 287 284 + execv(STATIC_CAT_PATH, &argv[2]); 288 + 289 + 285 + log_err("(%d)%s: static_cat exec failed (%s)\n", errno, strerror(errno), argv[2]); 286 + exit(255); 290 287 + } 291 288 + if (is_php_extension(cmd)) { … … 294 291 + argv[2] = "-f"; 295 292 + execv(PHP_PATH, &argv[1]); 296 + 297 + 298 + } 299 + 300 /*301 * Execute the command, replacing our image with its own.302 * /293 + log_err("(%d)%s: php exec failed (%s)\n", errno, strerror(errno), argv[2]); 294 + exit(255); 295 + } 296 + 297 #ifdef AP_SUEXEC_UMASK 298 /* 299 * umask() uses inverse logic; bits are CLEAR for allowed access. -
branches/fc11-dev/server/fedora/specs/httpd.spec.patch
r1035 r1146 1 --- httpd.spec.orig 2009-03- 28 13:32:47.000000000 -04002 +++ httpd.spec 2009-0 3-28 14:20:15.000000000 -04003 @@ - 6,7 +6,7 @@1 --- httpd.spec.orig 2009-03-17 09:12:22.000000000 -0400 2 +++ httpd.spec 2009-06-03 05:05:30.000000000 -0400 3 @@ -7,7 +7,7 @@ 4 4 Summary: Apache HTTP Server 5 5 Name: httpd 6 Version: 2.2.1 07 -Release: 1%{?dist}8 +Release: 1%{?dist}.scripts.%{scriptsversion}6 Version: 2.2.11 7 -Release: 8 8 +Release: 8.scripts.%{scriptsversion} 9 9 URL: http://httpd.apache.org/ 10 10 Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz 11 11 Source1: index.html 12 @@ -5 4,6 +54,12 @@12 @@ -56,6 +56,12 @@ 13 13 Conflicts: pcre < 4.0 14 Requires: httpd-tools = %{version}-%{release} 14 Requires: httpd-tools = %{version}-%{release}, apr-util-ldap 15 15 16 16 +Provides: scripts-httpd … … 23 23 The Apache HTTP Server is a powerful, efficient, and extensible 24 24 web server. 25 @@ -10 0,6 +106,7 @@25 @@ -102,6 +108,7 @@ 26 26 BuildRequires: openssl-devel, distcache-devel 27 27 Requires(post): openssl >= 0.9.7f-4, /bin/cat … … 31 31 32 32 %description -n mod_ssl 33 @@ -1 27,6 +134,11 @@33 @@ -130,6 +137,11 @@ 34 34 # Patch in vendor/release string 35 35 sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch -p1 … … 43 43 vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'` 44 44 if test "x${vmmn}" != "x%{mmn}"; then 45 @@ -17 5,10 +187,12 @@45 @@ -178,10 +190,12 @@ 46 46 --with-apr=%{_prefix} --with-apr-util=%{_prefix} \ 47 47 --enable-suexec --with-suexec \
Note: See TracChangeset
for help on using the changeset viewer.