Date: Wed, 10 Mar 2010 11:43:59 +0900 From: Takeshi MUTOH <mutoh@openedu.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: jadawin@FreeBSD.org, mutoh@openedu.org Subject: ports/144609: security/rkhunter arguments changing Message-ID: <86k4tkopzk.wl%mutoh@openedu.org> Resent-Message-ID: <201003100250.o2A2o2Op058516@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@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@openedu.org> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k4tkopzk.wl%mutoh>