Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.804 2003/01/16 14:06:18 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.805 2003/03/05 13:50:43 mast Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN   #include <roxen.h>   #include <config.h>   #include <module.h>   #include <variables.h>
Roxen.git/server/base_server/roxen.pike:276: Inside #if defined(HAVE_EFFECTIVE_USER)
   if (err < 0) {    report_debug("Privs: Failed\n");    error ("Failed to set EGID to %d\n", gid);    }    report_debug("Privs: WARNING: Set egid to %d instead of %d.\n",    gid2, gid);    gid = gid2;    }    if(getgid()!=gid) setgid(gid||getgid());    seteuid(new_uid = uid); +  enable_coredumps(1);   #endif /* HAVE_EFFECTIVE_USER */    }       void destroy()    {    // No need for Privs if the uid has been changed permanently.    if(getuid()) return;      #ifdef PRIVS_DEBUG    report_debug(sprintf("Privs->destroy()\n"
Roxen.git/server/base_server/roxen.pike:349: Inside #if defined(HAVE_EFFECTIVE_USER)
   seteuid(0);    array u = getpwuid(saved_uid);   #if efun(cleargroups)    catch { cleargroups(); };   #endif /* cleargroups */    if(u && (sizeof(u) > 3)) {    catch { initgroups(u[0], u[3]); };    }    setegid(saved_gid);    seteuid(saved_uid); +  enable_coredumps(1);   #endif /* HAVE_EFFECTIVE_USER */    }   #else /* efun(seteuid) */    void create(string reason, int|string|void uid, int|string|void gid){}   #endif /* efun(seteuid) */   }      /* Used by read_config.pike, since there seems to be problems with    * overloading otherwise.    */
Roxen.git/server/base_server/roxen.pike:1609: Inside #if constant(SSL.sslfile)
   {    report_error(LOC_M(15,"SSL3: Private dsa key not valid")+" (DER).\n");    return;    }       SSL3_WERR(sprintf("Using DSA key."));       dsa->use_random(r);    ctx->dsa = dsa;    /* Use default DH parameters */ + #if constant(SSL.Cipher) +  ctx->dh_params = SSL.Cipher.DHParameters(); + #else    ctx->dh_params = SSL.cipher.dh_parameters(); -  + #endif       ctx->dhe_dss_mode();       // FIXME: Add cert <-> private key check.       ctx->certificates = ({ cert }) + ctx->certificates;    }    else    {    report_error(LOC_M(17,"SSL3: No private key found.")+"\n");
Roxen.git/server/base_server/roxen.pike:3663: Inside #if undefined(__NT__)
   string u, g;    int uid, gid;    array pw;       if (from_handler_thread && geteuid()) {    // The euid switch in the backend thread worked here too, so    // there's no need to do anything.   #ifdef TEST_EUID_CHANGE    werror ("euid change effective in handler thread.\n");   #endif +  enable_coredumps (1);    return 1;    }       u=query("User");    sscanf(u, "%s:%s", u, g);    if(strlen(u))    {    if(getuid())    {    if (!from_handler_thread)
Roxen.git/server/base_server/roxen.pike:3793:    if (u && !from_handler_thread)    report_notice(CALL_M("setting_uid_gid", "eng")(uid, gid, u, g));   #else    if (!from_handler_thread)    report_warning(LOC_M(32, "Setting effective uid not supported on "    "this system.")+"\n");    u = g = 0;   #endif    }    +  enable_coredumps(1); +    #ifdef THREADS    // Paranoia.    mutex_key = 0;    threads_disabled = 0;   #endif       return !!u;    }    }   #endif