httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r711234 - /httpd/httpd/trunk/modules/generators/mod_cgid.c
Date Tue, 04 Nov 2008 11:55:25 GMT
Author: rpluem
Date: Tue Nov  4 03:55:25 2008
New Revision: 711234

URL: http://svn.apache.org/viewvc?rev=711234&view=rev
Log:
* Instead of unixd_setup_child run the drop_privileges hook to switch the
  userid / groupid.

Modified:
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=711234&r1=711233&r2=711234&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Tue Nov  4 03:55:25 2008
@@ -59,7 +59,7 @@
 #include "http_log.h"
 #include "util_script.h"
 #include "ap_mpm.h"
-#include "unixd.h"
+#include "mpm_common.h"
 #include "mod_suexec.h"
 #include "../filters/mod_include.h"
 
@@ -630,7 +630,10 @@
         }
     }
 
-    unixd_setup_child(); /* if running as root, switch to configured user/group */
+    /* if running as root, switch to configured user/group */
+    if ((rc = ap_run_drop_privileges(pcgi, ap_server_conf)) != 0) {
+        return rc;
+    }
 
     while (!daemon_should_exit) {
         int errfileno = STDERR_FILENO;



Mime
View raw message