Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107857 - php4.4.0-pcre-security.patch generates false "possitives" on rkhunter
Summary: php4.4.0-pcre-security.patch generates false "possitives" on rkhunter
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 02:40 UTC by J.O. Aho
Modified: 2005-10-02 08:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.O. Aho 2005-10-02 02:40:29 UTC
The php4.4.0-pcre-security.patch changes the EXTRA_VERSION variable and makes
rkhunter to not recognize the version of php and generates then a false
"possitve" result for php.

Reproducible: Always
Steps to Reproduce:
1. emerge dev-lang/php
2. rkhunter -c

Actual Results:  
 - PHP 4.4.0-gentoo-r1  [Unknown]

Expected Results:  
 - PHP 4.4.0  [OK]

Please don't add EXTRA_VERSION on applicatios that will generate false
"possitves" on security checkup programs.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-02 02:43:55 UTC
(In reply to comment #0)
> Please don't add EXTRA_VERSION on applicatios that will generate false
> "possitves" on security checkup programs.

Not really php's fault; -pl1 is higher version then 4.4.0. 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-10-02 03:25:20 UTC
(In reply to comment #0)
>  - PHP 4.4.0-gentoo-r1  [Unknown]

Hmm, you should re-emerge php, your version is not correct (Bug 106843)
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2005-10-02 05:09:50 UTC
This bug was fixed about a week ago or more. The initial pcre-security.patch
indeed had a little mistake, as it set the EXTRA_VERSION to -gentoo-r1, wich
then broken the version_compare functions and we're sorry for this. It was then
changed to -pl1-gentoo, wich is valid version naming for PHP and does not break
PHP's version_compare functions. So, just recompile PHP and you'll get the fixed
-pl1-gentoo, and if that still breaks RKHunter, it's a RKHunter problem and not
a PHP one, since -pl1-gentoo is _valid_ naming.
Best regards, CHTEKK.
Comment 4 Aaron Walker (RETIRED) gentoo-dev 2005-10-02 08:51:57 UTC
(In reply to comment #3)
> This bug was fixed about a week ago or more. The initial pcre-security.patch
> indeed had a little mistake, as it set the EXTRA_VERSION to -gentoo-r1, wich
> then broken the version_compare functions and we're sorry for this. It was then
> changed to -pl1-gentoo, wich is valid version naming for PHP and does not break
> PHP's version_compare functions. So, just recompile PHP and you'll get the fixed
> -pl1-gentoo, and if that still breaks RKHunter, it's a RKHunter problem and not
> a PHP one, since -pl1-gentoo is _valid_ naming.
> Best regards, CHTEKK.


If recompiling does not solve the issue, please file a bug with rkhunter
upstream @ http://www.rkhunter.org/.