FreeBSD Bugzilla – Attachment 145707 Details for
Bug 191842
security/rkhunter (v1.4.2) distributed configuration file has missing and erroneous entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated Gerard's patch for rkhunter 1.4.2
rkhunter-1.4.2.diff (text/plain), 3.93 KB, created by
Lukasz Wasikowski
on 2014-08-12 10:37:41 UTC
(
hide
)
Description:
Updated Gerard's patch for rkhunter 1.4.2
Filename:
MIME Type:
Creator:
Lukasz Wasikowski
Created:
2014-08-12 10:37:41 UTC
Size:
3.93 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 364688) >+++ Makefile (working copy) >@@ -6,7 +6,7 @@ > CATEGORIES= security > MASTER_SITES= SF > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= lukasz@wasikowski.net > COMMENT= Rootkit detection tool > > LICENSE= GPLv2 >@@ -27,8 +27,10 @@ > NMAP_RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap > > post-patch: >- @${REINPLACE_CMD} -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \ >+ @${REINPLACE_CMD} -i '' -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \ > ${WRKSRC}/installer.sh >+ @${REINPLACE_CMD} -i '' -e 's|RKHPREFIX|${PREFIX}|g' \ >+ ${WRKSRC}/files/${PORTNAME}.conf > > do-install: > cd ${WRKSRC} && ./installer.sh --layout custom ${STAGEDIR}${PREFIX} --install >@@ -40,7 +42,7 @@ > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${STAGEDIR}${DOCSDIR} > > post-install: >- ${REINPLACE_CMD} -i '' -e 's,${STAGEDIR},,' \ >+ @${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||g' \ > ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf > ${INSTALL_DATA} ${WRKSRC}/files/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample > ${INSTALL_DATA} -m 640 ${WRKSRC}/files/programs_bad.dat ${STAGEDIR}${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat.sample >Index: files/patch-files__rkhunter.conf >=================================================================== >--- files/patch-files__rkhunter.conf (revision 364688) >+++ files/patch-files__rkhunter.conf (working copy) >@@ -1,17 +1,60 @@ >---- files/rkhunter.conf.orig 2014-06-06 09:59:35.000000000 -0400 >-+++ files/rkhunter.conf 2014-06-06 10:01:32.000000000 -0400 >-@@ -575,6 +575,10 @@ >+--- files/rkhunter.conf.orig 2014-01-25 22:29:51.000000000 +0100 >++++ files/rkhunter.conf 2014-08-11 23:18:14.887973000 +0200 >+@@ -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=RKHPREFIX/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=RKHPREFIX/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=RKHPREFIX/lib/rkhunter/scripts >+ >+ # >+ # This option can be used to modify the command directory list used by rkhunter >+@@ -303,7 +303,7 @@ >+ # >+ # The default value is 'no'. >+ # >+-#ALLOW_SSH_ROOT_USER=no >++ALLOW_SSH_ROOT_USER=unset >+ >+ # >+ # Set this option to '1' to allow the use of the SSH-1 protocol, but note >+@@ -317,7 +317,7 @@ >+ # >+ # The default value is '0'. >+ # >+-#ALLOW_SSH_PROT_V1=0 >++ALLOW_SSH_PROT_V1=2 >+ >+ # >+ # This setting tells rkhunter the directory containing the SSH configuration >+@@ -575,6 +575,8 @@ > # The default value is the null string. > # > #SCRIPTWHITELIST=/usr/bin/groups > +SCRIPTWHITELIST=/usr/bin/whatis > +SCRIPTWHITELIST=/usr/sbin/adduser >-+SCRIPTWHITELIST=/usr/local/bin/GET >-+SCRIPTWHITELIST=/usr/local/sbin/pkgdb > > # > # Allow the specified file to have the immutable attribute set. >-@@ -584,6 +588,10 @@ >+@@ -584,6 +586,10 @@ > # The default value is the null string. > # > #IMMUTWHITELIST=/sbin/ifdown >@@ -22,7 +65,7 @@ > > # > # If this option is set to '1', then the immutable-bit test is reversed. That >-@@ -787,6 +795,7 @@ >+@@ -787,6 +793,7 @@ > # The default value is the null string. > # > #UID0_ACCOUNTS=toor rooty >@@ -30,3 +73,10 @@ > > # > # This option allows the specified accounts to have no password. NIS/YP entries >+@@ -1222,3 +1229,6 @@ >+ # >+ #EMPTY_LOGFILES="" >+ #MISSING_LOGFILES="" >++ >++INSTALLDIR=RKHPREFIX >++USER_FILEPROP_FILES_DIRS=RKHPREFIX/etc/rkhunter.conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191842
:
145328
| 145707