PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > suexec and environmental variables
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

suexec and environmental variables

Réponse
 
LinkBack Outils de la discussion
Vieux 07/05/2005, 20h15   #1
Yi Qiang
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut suexec and environmental variables

Hi,
I've looked high and low and searched the groups for a solution. I
understand that suexec strips environmental variables before it launches
the child process. Looking at the c code it uses execve(). My question
is: how can I get child processes to inherit some environmental
variables from a central file (like source profilename). I.E. I'd like
to have *one* file that specifies environmental variables for all sorts
of cgi scripts (bash/perl/python/c) etc. Is that possible?

Thanks in advance,
Yi
  Réponse avec citation
Vieux 09/05/2005, 22h14   #2
phil-news-nospam@ipal.net
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: suexec and environmental variables

On Sat, 07 May 2005 12:15:02 -0700 Yi Qiang <yqiang@washington.edu> wrote:

| I've looked high and low and searched the groups for a solution. I
| understand that suexec strips environmental variables before it launches
| the child process. Looking at the c code it uses execve(). My question
| is: how can I get child processes to inherit some environmental
| variables from a central file (like source profilename). I.E. I'd like
| to have *one* file that specifies environmental variables for all sorts
| of cgi scripts (bash/perl/python/c) etc. Is that possible?

You can write your own C code into, or in place of, suexec.c (be beware
if you don't know why absolutely everything it does is done, then you
could be exposing your server to exploits). If you can program in C then
there's no reason you can't make it do exactly what _you_ want it to do.
That's one of the reasons for having things in open source. And if you
can't or don't want to do that, I'm sure there are hundreds of people who
(like me) could do it for you for some price.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
  Réponse avec citation
Vieux 10/05/2005, 03h54   #3
Yi Qiang
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: suexec and environmental variables

phil-news-nospam@ipal.net wrote:
> On Sat, 07 May 2005 12:15:02 -0700 Yi Qiang <yqiang@washington.edu> wrote:
>
> | I've looked high and low and searched the groups for a solution. I
> | understand that suexec strips environmental variables before it launches
> | the child process. Looking at the c code it uses execve(). My question
> | is: how can I get child processes to inherit some environmental
> | variables from a central file (like source profilename). I.E. I'd like
> | to have *one* file that specifies environmental variables for all sorts
> | of cgi scripts (bash/perl/python/c) etc. Is that possible?
>
> You can write your own C code into, or in place of, suexec.c (be beware
> if you don't know why absolutely everything it does is done, then you
> could be exposing your server to exploits). If you can program in C then
> there's no reason you can't make it do exactly what _you_ want it to do.
> That's one of the reasons for having things in open source. And if you
> can't or don't want to do that, I'm sure there are hundreds of people who
> (like me) could do it for you for some price.
>

Modifying the c code is not so tricky, what becomes tricky will be
maintaining apache for future upgrades.

Yi
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12986 seconds with 11 queries