ports/144609: security/rkhunter arguments changing

Takeshi MUTOH mutoh at openedu.org
Wed Mar 10 02:50:02 UTC 2010


>Number:         144609
>Category:       ports
>Synopsis:       security/rkhunter arguments changing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 10 02:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Takeshi MUTOH <mutoh at openedu.org>
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
610t
>Environment:

  FreeBSD sacraya.610t.org 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:

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. 

>How-To-Repeat:
>Fix:
So I want to change this script below:

--- 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 at 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


--
Takeshi MUTOH	<mutoh at openedu.org>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list