Re: suexec doesn't see TMPDIR variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 07.08.08 15:04, Matus UHLAR - fantomas wrote:
> I configured my vhost to have TMPDIR variable set to particular directory.
> PHP scripts see this variable w/o problem, but not CGIs.
> 
> I'm running suexec, and have patched it (yes, I know the risks) to pass this
> variable, but even when I replaced suexec binary by script that only prints
> environment, I didn't see TMPDIR set. When I removed suexec binary, the
> TMPDIR was set.
> 
> Can anyone help me to find out where is the TMPDIR removed, and probably
> why?

I have looked at it again and it seems that suexec itself doesn't see the
TMPDIR variable.

I was able to pass HOME variable to suexec and the CGI (through patching
suexec), but not the TMODIR. 

I don't see in mod_suexec.c anything that would manipulate the environment.
Does anyone have an idea what can cause this?

Thank you.

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux