Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104557 - rkhunter cron.daily don't respect --report-warnings-only
Summary: rkhunter cron.daily don't respect --report-warnings-only
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 00:48 UTC by Romang
Modified: 2006-01-21 13:03 UTC (History)
0 users

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


Attachments
rkhunter-cron.diff (rkhunter-cron.diff,888 bytes, patch)
2005-09-16 12:38 UTC, Christian Gut
Details | Diff
rkhunter-cron.diff (rkhunter-cron.diff,632 bytes, patch)
2005-09-16 12:40 UTC, Christian Gut
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Romang 2005-09-02 00:48:13 UTC
Hello,

If we put RKHUNTER_OPTS="-c --cronjob --skip-keypress --report-warnings-only"
and SEND_EMAIL=yes

We still receive email from the server if they are no warning.

Regards.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-09-02 03:06:21 UTC
Let me know whether setting VERBOSITY to the appropriate number works.
Comment 2 Romang 2005-09-07 00:10:54 UTC
Hello,

I have modify my config :

RKHUNTER_OPTS="-c --cronjob --skip-keypress --report-warnings-only"
ENABLE=yes
SEND_EMAIL=yes
VERBOSITY=1

But I still receive email (empty email) for each server.

Regards
Comment 3 Romang 2005-09-07 04:37:58 UTC
Hello,

The problem is due to :

# email output?
if [[ "${SEND_EMAIL}" == "yes" ]] ; then
CMD="cat ${_tmpout} ${EMAIL_CMD}"
eval ${CMD}
fi

they is no check if _tmpout is empty or not

Regards.
Comment 4 Christian Gut 2005-09-16 12:36:14 UTC
Just had the same idea, fixed it and found this bug. The following patch
redirects STDOUT of the update-run to /dev/null and checks if the logfile's size
 is greater zero.
Comment 5 Christian Gut 2005-09-16 12:38:13 UTC
Created attachment 68610 [details, diff]
rkhunter-cron.diff

fixes the stuff described above.
Comment 6 Christian Gut 2005-09-16 12:40:37 UTC
Created attachment 68611 [details, diff]
rkhunter-cron.diff

fixed the diff, sorry.
Comment 7 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-01-21 13:03:35 UTC
Changelog indicates that ka0ttic fixed this a while back