Branch: Tag:

1998-02-04

1998-02-04 16:10:52 by Per Hedbor <ph@opera.com>

Added profining, removed 4711 Privs, added call_out workaround

Rev: server/base_server/configuration.pike:1.92
Rev: server/base_server/disk_cache.pike:1.33
Rev: server/base_server/privs.pike:1.32
Rev: server/base_server/read_config.pike:1.18
Rev: server/base_server/roxen.pike:1.163
Rev: server/base_server/roxenloader.pike:1.55
Rev: server/config_actions/generate_rsa.pike:1.5
Rev: server/modules/filesystems/filesystem.pike:1.26
Rev: server/modules/filesystems/restrictedfs.pike:1.7
Rev: server/modules/filesystems/userfs.pike:1.17
Rev: server/modules/graphics/business_graphics/business.pike:1.63
Rev: server/modules/graphics/graphic_text.pike:1.99
Rev: server/modules/misc/ip-less_hosts.pike:1.8
Rev: server/modules/misc/mirrorserver.pike:1.13
Rev: server/modules/misc/userdb.pike:1.23
Rev: server/modules/scripting/cgi.pike:1.70
Rev: server/modules/scripting/pikescript.pike:1.20
Rev: server/modules/tags/htmlparse.pike:1.74
Rev: server/protocols/ftp.pike:1.77
Rev: server/protocols/http.pike:1.52
Rev: server/start:1.25

1: - constant cvs_version = "$Id: roxen.pike,v 1.162 1998/02/04 05:23:56 per Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.163 1998/02/04 16:10:40 per Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
553:    if(old != new) {    perror("Got new supports data from www.roxen.com\n");    perror("Replacing old file with new data.\n"); + #ifndef THREADS    object privs=Privs("Replacing etc/supports"); -  + #endif    mv("etc/supports", "etc/supports~");    Stdio.write_file("etc/supports", new);    old = Stdio.read_bytes( "etc/supports" ); -  + #if efun(chmod) +  if(geteuid() != getuid()) chmod("etc/supports",0660); + #endif    if(old != new)    {    perror("FAILED to update the supports file.\n");    mv("etc/supports~", "etc/supports"); -  + #ifndef THREADS    privs = 0; -  + #endif    } else { -  + #ifndef THREADS    privs = 0; -  + #endif    initiate_supports();    }    }
927:   // of code to support this is in the 'start' script.   void kill_me()   { -  object privs = Privs("Shutting down the server"); -  // Change to root user. +  // Change to root user if possible ( to kill the start script... ) +  seteuid(getuid()); +  setegid(getgid()); +  setuid(0);       stop_all_modules();