unspawn wrote:
> With linenumbers from rkhunter-1.2.8 it looks like this:
> 
> 2059     # Extract information from Operating System database
> 2060     os_string=`cat ${DB_PATH}/os.dat | grep "${full_osname}:"`
> 2061     os_id=`echo ${os_string} | cut -d ":" -f1`
> 
> Even though I doubt RHEL did it that way (if that's CaOS' basis) and
> even though no other supported distribution does use colons in their
> release notation it probably would be too much hassle to ask and argue
> with CaOS to change their release notation, so we probably will have to
> make a workaround for CaOS, NP.

What about stripping all colons from full_osname before running the
comparison?  That way you don't have to change the database and cAos
don't have to change their release string! :-)

>> Does it have to come from a file such as /etc/redhat-release, or is
>> there a generic way?
> Yes. AFAIK (top of my head) in all cases we use distributions release
> files.

Can I persuade you to add /etc/caos-release too? :-)

Alternatively - leave it with me, and I'll have a dig through and send
you a patch in a few days...

Ben

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rkhunter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to