Changeset 1169


Ignore:
Timestamp:
Jun 5, 2009, 12:24:02 AM (13 years ago)
Author:
geofft
Message:
suexec: Hardcode the JAVA_TOOL_OPTIONS value.

Because, otherwise, suexec doesn't save you from JAVA_TOOL_OPTIONS="-cp
/path/to/sketchy/code.jar". Reported by Anders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/patches/httpd-suexec-scripts.patch

    r1167 r1169  
    7373 
    7474     /* variable name is */
    75 @@ -108,6 +113,7 @@
    76      "DOCUMENT_ROOT=",
    77      "DOCUMENT_URI=",
    78      "GATEWAY_INTERFACE=",
    79 +    "JAVA_TOOL_OPTIONS=",
    80      "HTTPS=",
    81      "LAST_MODIFIED=",
    82      "PATH_INFO=",
    8375@@ -245,9 +250,67 @@
    8476     environ = cleanenv;
     
    149141     gid_t gid;              /* target group placeholder  */
    150142     char *target_uname;     /* target user name          */
     143@@ -268,6 +331,7 @@
     144      * Start with a "clean" environment
     145      */
     146     clean_env();
     147+    setenv("JAVA_TOOL_OPTIONS", "-Xmx128M", 1); /* scripts.mit.edu local hack */
     148
     149     prog = argv[0];
     150     /*
    151151@@ -350,6 +406,20 @@
    152152 #endif /*_OSD_POSIX*/
Note: See TracChangeset for help on using the changeset viewer.