Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226067 - chkrootkit-0.47: shell history anomalies warning for linked files uses wrong file list
Summary: chkrootkit-0.47: shell history anomalies warning for linked files uses wrong ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 13:38 UTC by Horst Prote
Modified: 2008-10-06 19:46 UTC (History)
0 users

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


Attachments
diff between the original and corrected chkrootkit script (chkrootkit.diff,910 bytes, patch)
2008-06-12 13:40 UTC, Horst Prote
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2008-06-12 13:38:18 UTC
In its "shell history anomalies" part chkrootkit collects two lists of
anomalous history files:
- $files: file size is zero
- $files1: is linked to another file
But when the according warning is written both times $files is used.
For details see the attached diff.

Reproducible: Always

Steps to Reproduce:
None of the files target, .link-history and .empty-history should exist.
1. echo Hallo > target
2. ln target .link-history
3. touch .empty-history
4. chkrootkit

Actual Results:  
...
Searching for anomalies in shell history files... Warning: `//root/.empty-history' file size is zero
Warning: `//root/.empty-history' is linked to another file
...

Expected Results:  
...
Searching for anomalies in shell history files... Warning: `//root/.empty-history' file size is zero
Warning: `//root/.link-history' is linked to another file
...
Comment 1 Horst Prote 2008-06-12 13:40:09 UTC
Created attachment 156497 [details, diff]
diff between the original and corrected chkrootkit script
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2008-10-06 19:46:21 UTC
Fixed in chkrootkit-0.48. Thank you for report and fix.