summaryrefslogtreecommitdiff
path: root/src/support/suexec.h
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>1996-11-24 09:37:07 +0000
committerRoy T. Fielding <fielding@apache.org>1996-11-24 09:37:07 +0000
commit912bd69e5371add9d161ca220b300c7b7d40f992 (patch)
treeb115c101984f8dc52dcdccebda5d12be844baf69 /src/support/suexec.h
parent32c23675a38aca845da9e3eb829774eb963fcab5 (diff)
downloadhttpd-912bd69e5371add9d161ca220b300c7b7d40f992.tar.gz
Removed HAVE_RLIMIT and related rlimit code now that the server handles
the functionality. Moved user-defined code to suexec.h. Added "DON'T EDIT" warning in code. No more "security by obscurity"...comments added at each step. Submitted by: Jason A. Dour Reviewed by: Roy Fielding, Randy Terbush git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@77035 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/support/suexec.h')
-rw-r--r--src/support/suexec.h101
1 files changed, 101 insertions, 0 deletions
diff --git a/src/support/suexec.h b/src/support/suexec.h
new file mode 100644
index 0000000000..a9505f3802
--- /dev/null
+++ b/src/support/suexec.h
@@ -0,0 +1,101 @@
+/* ====================================================================
+ * Copyright (c) 1995 The Apache Group. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. All advertising materials mentioning features or use of this
+ * software must display the following acknowledgment:
+ * "This product includes software developed by the Apache Group
+ * for use in the Apache HTTP server project (http://www.apache.org/)."
+ *
+ * 4. The names "Apache Server" and "Apache Group" must not be used to
+ * endorse or promote products derived from this software without
+ * prior written permission.
+ *
+ * 5. Redistributions of any form whatsoever must retain the following
+ * acknowledgment:
+ * "This product includes software developed by the Apache Group
+ * for use in the Apache HTTP server project (http://www.apache.org/)."
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Group and was originally based
+ * on public domain software written at the National Center for
+ * Supercomputing Applications, University of Illinois, Urbana-Champaign.
+ * For more information on the Apache Group and the Apache HTTP server
+ * project, please see <http://www.apache.org/>.
+ *
+ */
+
+/*
+ * suexec.h -- user-definable variables for the suexec wrapper code.
+ *
+ * A MotherSoft Product for the Apache WWW server.
+ * (http://www.louisville.edu/~jadour01/mothersoft/)
+ *
+ */
+
+
+#ifndef _SUEXEC_H
+#define _SUEXEC_H
+
+/*
+ * HTTPD_USER -- Define as the username under which Apache normally
+ * runs. This is the only user allowed to execute
+ * this program.
+ */
+#define HTTPD_USER "www"
+
+/*
+ * LOG_EXEC -- Define this as a filename if you want all suEXEC
+ * transactions and errors logged for auditing and
+ * debugging purposes.
+ */
+#define LOG_EXEC "/usr/local/etc/httpd/logs/cgi.log" /* Need me? */
+
+/*
+ * DOC_ROOT -- Define as the DocuemntRoot set for Apache. This
+ * will be the only hierarchy (aside from UserDirs)
+ * that can be used for suEXEC behaviour.
+ */
+#define DOC_ROOT "/usr/local/etc/httpd/htdocs"
+
+/*
+ * NNAME -- Define this as the name for the nobody account
+ * on your operating system. Most systems will just
+ * need the default 'nobody'.
+ */
+#define NNAME "nobody"
+
+/* NGID -- Define this as the *number* for the nogroup group
+ * on your operating system. Most systems will have
+ * a -1 or -2. Others might have something above
+ * 65000.
+ */
+#define NGID -1
+
+
+#endif /* _SUEXEC_H */