]> granicus.if.org Git - apache/commitdiff
this security API needs some loving, a warning at least for SYSTEM/LocalSystem
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 16 Jan 2009 18:58:47 +0000 (18:58 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 16 Jan 2009 18:58:47 +0000 (18:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@735087 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index b2c722ee7dced73504825a41dc0e8c1271e6fb33..45ac052b83779009a10ce3a7f4535c347c7d681e 100644 (file)
@@ -1325,6 +1325,12 @@ static int winnt_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *pt
         ap_exists_config_define("DEBUG"))
         one_process = -1;
 
+    /* XXX: presume proper privilages; one nice thing would be
+     * a loud emit if running as "LocalSystem"/"SYSTEM" to indicate
+     * they should change to a user with write access to logs/ alone.
+     */
+    ap_sys_privileges_handlers(1);
+
     if (!strcasecmp(signal_arg, "runservice")
             && (service_to_start_success != APR_SUCCESS)) {
         ap_log_error(APLOG_MARK,APLOG_CRIT, service_to_start_success, NULL,