Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Aug 2014 20:05:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191842] security/rkhunter (v1.4.2) distributed configuration file has missing and erroneous entries
Message-ID:  <bug-191842-13-7go9CIv2Vl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191842-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-191842-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191842

--- Comment #5 from Gerard J. Cerchio <gjc@circlesoft.com> ---
(In reply to Adam Weinberger from comment #4)
> (In reply to Gerard J. Cerchio from comment #3)
> > patch is in the OP
> 
> That's a fragment, not a patch.
> 
> Please submit your patch as an attachment, created with diff(1), that shows
> which files are being modified. See
> http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/pr-
> writing.html#pr-writing-attaching-patches for details.

Hi Adam,

Unfortunately I have no idea how to find the rkhunter source tree used by
FreeBSD.

The best I could do for now is provide you with the diff -u outputs. They are
probably not performed correctly so I will not attach them. I found the
original files in
/var/ports/basejail/usr/ports/security/rkhunter/work/stage/usr/local/etc so
here are the difs performed in the work directory tree:

 diff -u rkhunter.conf.sample /usr/local/etc/rkhunter.conf
--- rkhunter.conf.sample        2014-06-14 08:47:10.000000000 -0700
+++ /usr/local/etc/rkhunter.conf        2014-07-12 07:41:35.000000000 -0700
@@ -154,7 +154,7 @@
 # subsequently commented out or removed, then the program will assume a
 # default directory beneath the installation directory.
 #
-#TMPDIR=/var/lib/rkhunter/tmp
+TMPDIR=/usr/local/var/lib/rkhunter/tmp

 #
 # This option specifies the database directory to use.
@@ -163,7 +163,7 @@
 # subsequently commented out or removed, then the program will assume a
 # default directory beneath the installation directory.
 #
-#DBDIR=/var/lib/rkhunter/db
+DBDIR=/usr/local/var/lib/rkhunter/db

 #
 # This option specifies the script directory to use.
@@ -171,7 +171,7 @@
 # The installer program will set the default directory. If this default is
 # subsequently commented out or removed, then the program will not run.
 #
-#SCRIPTDIR=/usr/local/lib/rkhunter/scripts
+SCRIPTDIR=/usr/local/lib/rkhunter/scripts

 #
 # This option can be used to modify the command directory list used by
rkhunter
@@ -191,6 +191,8 @@
 #BINDIR=/bin /usr/bin /sbin /usr/sbin
 #BINDIR=+/usr/local/bin +/usr/local/sbin

+INSTALLDIR=/usr/local
+
 #
 # This option specifies the default language to use. This should be similar to
 # the ISO 639 language code.


diff -u rkhunter.conf /usr/local/etc/rkhunter.conf
--- rkhunter.conf       2014-06-14 08:47:10.000000000 -0700
+++ /usr/local/etc/rkhunter.conf        2014-07-12 07:41:35.000000000 -0700
@@ -154,7 +154,7 @@
 # subsequently commented out or removed, then the program will assume a
 # default directory beneath the installation directory.
 #
-#TMPDIR=/var/lib/rkhunter/tmp
+TMPDIR=/usr/local/var/lib/rkhunter/tmp

 #
 # This option specifies the database directory to use.
@@ -163,7 +163,7 @@
 # subsequently commented out or removed, then the program will assume a
 # default directory beneath the installation directory.
 #
-#DBDIR=/var/lib/rkhunter/db
+DBDIR=/usr/local/var/lib/rkhunter/db

 #
 # This option specifies the script directory to use.
@@ -171,7 +171,7 @@
 # The installer program will set the default directory. If this default is
 # subsequently commented out or removed, then the program will not run.
 #
-#SCRIPTDIR=/usr/local/lib/rkhunter/scripts
+SCRIPTDIR=/usr/local/lib/rkhunter/scripts

 #
 # This option can be used to modify the command directory list used by
rkhunter
@@ -191,6 +191,8 @@
 #BINDIR=/bin /usr/bin /sbin /usr/sbin
 #BINDIR=+/usr/local/bin +/usr/local/sbin

+INSTALLDIR=/usr/local
+
 #
 # This option specifies the default language to use. This should be similar to
 # the ISO 639 language code.
@@ -1231,9 +1233,3 @@
 #
 #EMPTY_LOGFILES=""
 #MISSING_LOGFILES=""
-
-INSTALLDIR=/usr/local
-DBDIR=/usr/local/var/lib/rkhunter/db
-SCRIPTDIR=/usr/local/lib/rkhunter/scripts
-TMPDIR=/usr/local/var/lib/rkhunter/tmp
-USER_FILEPROP_FILES_DIRS=/usr/local/etc/rkhunter.conf


I hope this helps you create the patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191842-13-7go9CIv2Vl>