Bug 144609 - security/rkhunter arguments changing
Summary: security/rkhunter arguments changing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philippe Audeoud
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 02:50 UTC by Takeshi MUTOH
Modified: 2010-12-21 15:44 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takeshi MUTOH 2010-03-10 02:50:01 UTC
I want rkhunter check arguments like this:
rkhunter --checkall --nocolors --skip-keypress --report-warnings-only
, but current /usr/local/etc/periodic/security/415.rkhunter script
doesn't change arguments.

I want to override argumets at /etc/periodic.conf.

Fix: So I want to change this script below:



--
Takeshi MUTOH	<mutoh@openedu.org>--dnCViEIZNc7osB2FcGJGmggcByLmVnesJ7OZphGiEOcBm1J3
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 415.rkhunter.20100310	2010-03-10 11:04:43.000000000 +0900
+++ /usr/local/etc/periodic/security/415.rkhunter	2010-03-10 11:09:46.000000000 +0900
@@ -9,6 +9,9 @@
 #
 # Written by: Gabor Kovesdan <gabor@FreeBSD.org>
 
+daily_rkhunter_update_args="--update --nocolors"
+daily_rkhunter_check_args="--checkall --nocolors --skip-keypress"
+
 if [ -r /etc/defaults/periodic.conf ]; then
    . /etc/defaults/periodic.conf
    source_periodic_confs
@@ -19,7 +22,7 @@
 
 	echo ""
 	echo "Updating the rkhunter database..."
-	/usr/local/bin/rkhunter --update --nocolors
+	/usr/local/bin/rkhunter $daily_rkhunter_update_args
 	;;
 esac
 
@@ -28,6 +31,6 @@
 
 	echo ""
 	echo "Running rkhunter..."
-	/usr/local/bin/rkhunter --checkall --nocolors --skip-keypress
+	/usr/local/bin/rkhunter $daily_rkhunter_check_args
 	;;
 esac
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-03-10 02:50:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jadawin

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Philippe Audeoud freebsd_committer freebsd_triage 2010-12-21 15:44:21 UTC
State Changed
From-To: open->closed

Committed with last update. Thanks.