store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 19, 2013 5:27 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 
Author Message
 Post subject: PEAR Library erroring
Unread postPosted: Wed Apr 07, 2010 4:26 pm 
Offline
New Forum User
New Forum User

Joined: Wed Apr 07, 2010 3:27 pm
Posts: 3
trying to run down an issue reported which i suspect an update clipped a pear library, library reference or permission as no code changes were dropped.

PHP Fatal error: Call to undefined function

posix_getpwuid() in /usr/share/pear/Crypt/GPG/Engine.php

is there a listing of the unsafe php functions for asl - is posix_getpwuid function considered a function that needs to be whitelisted?

php, 5.2.13
pear 1.7.2
include_path .:/usr/share/pear:/usr/share/php
safe_mode_include_dir /usr/share/pear


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Wed Apr 07, 2010 4:30 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7418
Location: earth
Nothing in ASL about that one


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Wed Apr 07, 2010 5:16 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3242
Location: Chantilly, VA
meh_,

A couple of ideas, do you have a "php-posix" package installed? If so, check check the permissions and ownership on the PHP code itself. I believe in your case it should be apache.apache.

Also, in case anyone using php 5.3, or 5.2.13 reads this, you need to install php-process.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Wed Apr 07, 2010 11:00 pm 
Offline
Forum Regular
Forum Regular

Joined: Thu Oct 26, 2006 11:56 pm
Posts: 665
Hi Mike,

Thanks for the info about php-process.

Is it generally required / recommended for 5.2.13 and 5.3.x or only if your using php-pear?


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Thu Apr 08, 2010 12:14 pm 
Offline
New Forum User
New Forum User

Joined: Wed Apr 07, 2010 3:27 pm
Posts: 3
Thanks much for the info Guys.

Package php-common-5.2.13-1.el5.art.i386 is installed

Tried also installing the php-posix package as it was not listed. Yum indicates already installed as part of
Package php-common-5.2.13-1.el5.art.i386

I'll dig into permissions to see if something got modified there. At /usr/share/pear everything is recursively owned by root.root.


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Thu Apr 08, 2010 12:20 pm 
Offline
New Forum User
New Forum User

Joined: Wed Apr 07, 2010 3:27 pm
Posts: 3
actually, meant php-process is already installed as well on the second line of my post, to correct.


Top
 Profile  
 
 Post subject: Re: PEAR Library erroring
Unread postPosted: Thu Apr 08, 2010 11:19 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3242
Location: Chantilly, VA
Is the function still missing?

Your other option would be to roll back to the version of PHP that had the function. You can do that with this command:

rpm -Uvh --oldpackage /var/cache/yum/atomic/php-(whatever_version).rpm

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group