summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2007-09-08 17:04:33 +0000
committerBenedikt Boehm <hollow@gentoo.org>2007-09-08 17:04:33 +0000
commitf35c30ea4d0bb2656b35acbfd664a6e95f4ef028 (patch)
treee4ae5b7f586457551746327f3e8916f78bd14e82 /www-apache
parentremove vulnerable version (diff)
downloadhistorical-f35c30ea4d0bb2656b35acbfd664a6e95f4ef028.tar.gz
historical-f35c30ea4d0bb2656b35acbfd664a6e95f4ef028.tar.bz2
historical-f35c30ea4d0bb2656b35acbfd664a6e95f4ef028.zip
initial version
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_whatkilledus/ChangeLog11
-rw-r--r--www-apache/mod_whatkilledus/Manifest34
-rw-r--r--www-apache/mod_whatkilledus/files/10_mod_whatkilledus.conf7
-rw-r--r--www-apache/mod_whatkilledus/files/digest-mod_whatkilledus-0.0.13
-rw-r--r--www-apache/mod_whatkilledus/files/gen_test_char.c121
-rw-r--r--www-apache/mod_whatkilledus/metadata.xml8
-rw-r--r--www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild37
7 files changed, 221 insertions, 0 deletions
diff --git a/www-apache/mod_whatkilledus/ChangeLog b/www-apache/mod_whatkilledus/ChangeLog
new file mode 100644
index 000000000000..800d858292ae
--- /dev/null
+++ b/www-apache/mod_whatkilledus/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apache/mod_whatkilledus
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_whatkilledus/ChangeLog,v 1.1 2007/09/08 17:04:32 hollow Exp $
+
+*mod_whatkilledus-0.0.1 (08 Sep 2007)
+
+ 08 Sep 2007; Benedikt Böhm <hollow@gentoo.org>
+ +files/10_mod_whatkilledus.conf, +files/gen_test_char.c, +metadata.xml,
+ +mod_whatkilledus-0.0.1.ebuild:
+ initial version
+
diff --git a/www-apache/mod_whatkilledus/Manifest b/www-apache/mod_whatkilledus/Manifest
new file mode 100644
index 000000000000..5ac4e38dbf45
--- /dev/null
+++ b/www-apache/mod_whatkilledus/Manifest
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 10_mod_whatkilledus.conf 220 RMD160 b99a7482ed996acdfb3a5c0df0033e268fbbd7eb SHA1 3827e499bac823f85743824514a9135444089328 SHA256 22191e35fb94323b5bba16657aa63680d7f069c748a3024a2bfc87a39e38fb01
+MD5 1e4889e2737fb16172ede37560567699 files/10_mod_whatkilledus.conf 220
+RMD160 b99a7482ed996acdfb3a5c0df0033e268fbbd7eb files/10_mod_whatkilledus.conf 220
+SHA256 22191e35fb94323b5bba16657aa63680d7f069c748a3024a2bfc87a39e38fb01 files/10_mod_whatkilledus.conf 220
+AUX gen_test_char.c 4220 RMD160 c0982e39a04a499e0d0798bb770e1c9f79f2b599 SHA1 365816992f88eeec9764f4a197405d31520257e9 SHA256 389348d0235fe77be73e8fbf3fcf52c2559b372098f40f62fbc106913533ea86
+MD5 7c4e734d1afc695a5be53581998f3700 files/gen_test_char.c 4220
+RMD160 c0982e39a04a499e0d0798bb770e1c9f79f2b599 files/gen_test_char.c 4220
+SHA256 389348d0235fe77be73e8fbf3fcf52c2559b372098f40f62fbc106913533ea86 files/gen_test_char.c 4220
+DIST mod_whatkilledus-0.0.1.c 12244 RMD160 8ad16837732302db4a2d0f2715fd2dfd5743125e SHA1 27b3d36d67b24a0242a82b683b872705de114d63 SHA256 940fed942ed5880ca885fae4fefc5dcb8167cb80c7dc6cfd4a58689714b3d779
+EBUILD mod_whatkilledus-0.0.1.ebuild 972 RMD160 576c423cf6e8ecbbd2d0f23fdad29d42c426180a SHA1 79c2f3864ffd940138814ea5321a62fd08ad964e SHA256 f999771353d5bc5f5462755990358642cefe7ade4f5f47f887294df27c9ef43d
+MD5 6c7cebb755df340b3dcfe2908a59f7dc mod_whatkilledus-0.0.1.ebuild 972
+RMD160 576c423cf6e8ecbbd2d0f23fdad29d42c426180a mod_whatkilledus-0.0.1.ebuild 972
+SHA256 f999771353d5bc5f5462755990358642cefe7ade4f5f47f887294df27c9ef43d mod_whatkilledus-0.0.1.ebuild 972
+MISC ChangeLog 443 RMD160 4b7768ca73ff8b50a5e5004b162c7e83f1f0f755 SHA1 eeeaeb3922cc61a11945987e3c261e8cfdd072ca SHA256 86c2b7259d6c6251cd0868b7a194454b772b2161ef9ffa7b829b234a4451ab01
+MD5 96450a789fb2a09b1c041c723797a4b7 ChangeLog 443
+RMD160 4b7768ca73ff8b50a5e5004b162c7e83f1f0f755 ChangeLog 443
+SHA256 86c2b7259d6c6251cd0868b7a194454b772b2161ef9ffa7b829b234a4451ab01 ChangeLog 443
+MISC metadata.xml 229 RMD160 bb816bd761846ad578f8c1521a1f1ec6297410f4 SHA1 92fdbcb6a85ece96506733ad67a5e4e74a58a529 SHA256 8e1aafc5385805d45759406a60df79f0ce88aa1df1a58d44b596405d64c9226d
+MD5 17bfbf436c6d4afc4dea019597d048d1 metadata.xml 229
+RMD160 bb816bd761846ad578f8c1521a1f1ec6297410f4 metadata.xml 229
+SHA256 8e1aafc5385805d45759406a60df79f0ce88aa1df1a58d44b596405d64c9226d metadata.xml 229
+MD5 8f572b27e5331c30cdcc77af8462e3db files/digest-mod_whatkilledus-0.0.1 250
+RMD160 1cb1e6714281a5ebed7bf1ae67b3e02ee84e9186 files/digest-mod_whatkilledus-0.0.1 250
+SHA256 2260bc399bd239b48371c0502a4478881e2bd99ff06b43b88f1f97bed0d7a6ba files/digest-mod_whatkilledus-0.0.1 250
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.6 (GNU/Linux)
+
+iD8DBQFG4tYsmPFBzbX68WERAnPmAKCNMR7iB8PT/7qlbYvkU2qj/yGikACdHi9D
+IFpPo9TLH/6PEw9xjEGN8VY=
+=9PTW
+-----END PGP SIGNATURE-----
diff --git a/www-apache/mod_whatkilledus/files/10_mod_whatkilledus.conf b/www-apache/mod_whatkilledus/files/10_mod_whatkilledus.conf
new file mode 100644
index 000000000000..70122847a2f2
--- /dev/null
+++ b/www-apache/mod_whatkilledus/files/10_mod_whatkilledus.conf
@@ -0,0 +1,7 @@
+<IfDefine WHATKILLEDUS>
+ <IfModule !mod_whatkilledus.c>
+ LoadModule whatkilledus_module modules/mod_whatkilledus.so
+ </IfModule>
+ EnableExceptionHook On
+ WhatKilledUsLog /var/log/apache2/whatkilledus_log
+</IfDefine>
diff --git a/www-apache/mod_whatkilledus/files/digest-mod_whatkilledus-0.0.1 b/www-apache/mod_whatkilledus/files/digest-mod_whatkilledus-0.0.1
new file mode 100644
index 000000000000..94d35e4bcf2a
--- /dev/null
+++ b/www-apache/mod_whatkilledus/files/digest-mod_whatkilledus-0.0.1
@@ -0,0 +1,3 @@
+MD5 e59c5d56e294a31e5b158ad5e4553001 mod_whatkilledus-0.0.1.c 12244
+RMD160 8ad16837732302db4a2d0f2715fd2dfd5743125e mod_whatkilledus-0.0.1.c 12244
+SHA256 940fed942ed5880ca885fae4fefc5dcb8167cb80c7dc6cfd4a58689714b3d779 mod_whatkilledus-0.0.1.c 12244
diff --git a/www-apache/mod_whatkilledus/files/gen_test_char.c b/www-apache/mod_whatkilledus/files/gen_test_char.c
new file mode 100644
index 000000000000..587583aed609
--- /dev/null
+++ b/www-apache/mod_whatkilledus/files/gen_test_char.c
@@ -0,0 +1,121 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apr.h"
+#include "apr_lib.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+#if APR_HAVE_STRING_H
+#include <string.h>
+#endif
+
+/* A bunch of functions in util.c scan strings looking for certain characters.
+ * To make that more efficient we encode a lookup table.
+ */
+#define T_ESCAPE_SHELL_CMD (0x01)
+#define T_ESCAPE_PATH_SEGMENT (0x02)
+#define T_OS_ESCAPE_PATH (0x04)
+#define T_HTTP_TOKEN_STOP (0x08)
+#define T_ESCAPE_LOGITEM (0x10)
+#define T_ESCAPE_FORENSIC (0x20)
+
+int main(int argc, char *argv[])
+{
+ unsigned c;
+ unsigned char flags;
+
+ printf("/* this file is automatically generated by gen_test_char, "
+ "do not edit */\n"
+ "#define T_ESCAPE_SHELL_CMD (%u)\n"
+ "#define T_ESCAPE_PATH_SEGMENT (%u)\n"
+ "#define T_OS_ESCAPE_PATH (%u)\n"
+ "#define T_HTTP_TOKEN_STOP (%u)\n"
+ "#define T_ESCAPE_LOGITEM (%u)\n"
+ "#define T_ESCAPE_FORENSIC (%u)\n"
+ "\n"
+ "static const unsigned char test_char_table[256] = {",
+ T_ESCAPE_SHELL_CMD,
+ T_ESCAPE_PATH_SEGMENT,
+ T_OS_ESCAPE_PATH,
+ T_HTTP_TOKEN_STOP,
+ T_ESCAPE_LOGITEM,
+ T_ESCAPE_FORENSIC);
+
+ for (c = 0; c < 256; ++c) {
+ flags = 0;
+ if (c % 20 == 0)
+ printf("\n ");
+
+ /* escape_shell_cmd */
+#if defined(WIN32) || defined(OS2)
+ /* Win32/OS2 have many of the same vulnerable characters
+ * as Unix sh, plus the carriage return and percent char.
+ * The proper escaping of these characters varies from unix
+ * since Win32/OS2 use carets or doubled-double quotes,
+ * and neither lf nor cr can be escaped. We escape unix
+ * specific as well, to assure that cross-compiled unix
+ * applications behave similiarly when invoked on win32/os2.
+ *
+ * Rem please keep in-sync with apr's list in win32/filesys.c
+ */
+ if (c && strchr("&;`'\"|*?~<>^()[]{}$\\\n\r%", c)) {
+ flags |= T_ESCAPE_SHELL_CMD;
+ }
+#else
+ if (c && strchr("&;`'\"|*?~<>^()[]{}$\\\n", c)) {
+ flags |= T_ESCAPE_SHELL_CMD;
+ }
+#endif
+
+ if (!apr_isalnum(c) && !strchr("$-_.+!*'(),:@&=~", c)) {
+ flags |= T_ESCAPE_PATH_SEGMENT;
+ }
+
+ if (!apr_isalnum(c) && !strchr("$-_.+!*'(),:@&=/~", c)) {
+ flags |= T_OS_ESCAPE_PATH;
+ }
+
+ /* these are the "tspecials" from RFC2068 */
+ if (c && (apr_iscntrl(c) || strchr(" \t()<>@,;:\\/[]?={}", c))) {
+ flags |= T_HTTP_TOKEN_STOP;
+ }
+
+ /* For logging, escape all control characters,
+ * double quotes (because they delimit the request in the log file)
+ * backslashes (because we use backslash for escaping)
+ * and 8-bit chars with the high bit set
+ */
+ if (c && (!apr_isprint(c) || c == '"' || c == '\\' || apr_iscntrl(c))) {
+ flags |= T_ESCAPE_LOGITEM;
+ }
+
+ /* For forensic logging, escape all control characters, top bit set,
+ * :, | (used as delimiters) and % (used for escaping).
+ */
+ if (!apr_isprint(c) || c == ':' || c == '|' || c == '%'
+ || apr_iscntrl(c) || !c) {
+ flags |= T_ESCAPE_FORENSIC;
+ }
+
+ printf("%u%c", flags, (c < 255) ? ',' : ' ');
+ }
+
+ printf("\n};\n");
+
+ return 0;
+}
diff --git a/www-apache/mod_whatkilledus/metadata.xml b/www-apache/mod_whatkilledus/metadata.xml
new file mode 100644
index 000000000000..a1f5ceff2352
--- /dev/null
+++ b/www-apache/mod_whatkilledus/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <maintainer>
+ <email>apache-bugs@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild b/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild
new file mode 100644
index 000000000000..9143f047be2d
--- /dev/null
+++ b/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_whatkilledus/mod_whatkilledus-0.0.1.ebuild,v 1.1 2007/09/08 17:04:32 hollow Exp $
+
+inherit apache-module eutils toolchain-funcs
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="Apache2 modules to debug segmentation faults in threads"
+HOMEPAGE="http://people.apache.org/~trawick/exception_hook.html"
+SRC_URI="mirror://gentoo/${P}.c"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="WHATKILLEDUS"
+
+need_apache2
+
+src_unpack() {
+ mkdir -p "${S}" || die "mkdir S failed"
+ cp -f "${DISTDIR}/${P}.c" "${S}/${PN}.c" || die "source copy failed"
+}
+
+src_compile() {
+ $(tc-getCC) \
+ $($(apr_config) --includes) \
+ $($(apr_config) --cppflags) \
+ -o "${S}"/gen_test_char \
+ "${FILESDIR}"/gen_test_char.c
+ "${S}"/gen_test_char > "${S}"/test_char.h
+ apache-module_src_compile
+}