#49351 [Opn->Fbk]: posix_setuid/posix_seteuid/posix_setgid/posix_setegid crashed apache
| From: | jani@php.net | Date: | Tue, 25 Aug 2009 06:43:16 +0000 |
| Subject: | #49351 [Opn->Fbk]: posix_setuid/posix_seteuid/posix_setgid/posix_setegid crashed apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141464@lists.php.net to get a copy of this message | ||
ID: 49351
Updated by: jani@php.net
Reported By: VJTD3 at VJTD3 dot com
-Status: Open
+Status: Feedback
Bug Type: POSIX related
Operating System: Linux
PHP Version: 5.3.0
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
And provide a GDB backtrace if it still crashes.
Previous Comments:
------------------------------------------------------------------------
[2009-08-25 00:02:36] VJTD3 at VJTD3 dot com
Description:
------------
apache Apache/2.2.13:
env CFLAGS="-DBIG_SECURITY_HOLE" ./configure --enable-so && make &&
make install
php 5.3.0:
./configure --with-apxs2 && make && make install
-DBIG_SECURITY_HOLE allows for root startup (administrative builds for
panels and such...) when this flag is used to compile apache, php will
crash when posix_setuid posix_seteuid posix_setgid or posix_setegid are
used to change the user/group.
Reproduce code:
---------------
<?php
posix_seteuid(1000);
posix_setegid(1000);
posix_setuid(1000);
posix_setgid(1000);
?>
(make sure you use a number that has an actual user...)
Expected result:
----------------
change to that user.
Actual result:
--------------
php and apache crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49351&edit=1