ports/56702: Fix security/chkrootkit on 4.x

Yonatan at xpert.com Yonatan at xpert.com
Thu Sep 11 13:30:22 UTC 2003


>Number:         56702
>Category:       ports
>Synopsis:       Fix security/chkrootkit on 4.x
>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:   Thu Sep 11 06:30:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yonatan at xpert.com
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD Temujin 4.8-RC FreeBSD 4.8-RC #1: Sat Apr 12 03:02:22 GMT 2003 root at Temujin:/usr/obj/usr/src/sys/TEMUJIN-G i386

>Description:
	My check to see if we are running FreeBSD >= 5 is always true.
While I'm fixing that, bump PORTREVISION.
	Alex Povolotsky helped me debug that. 
>How-To-Repeat:
	Run chkrootkit on 4.x and see false positives. See mail from Alex to
security at freebsd.org from 9/11/2003 subject: "chkrootkit 4.1 and FreeBSD 4.5".
>Fix:

--- chkrootkit.diff begins here ---
diff -urN chkrootkit.orig/Makefile chkrootkit/Makefile
--- chkrootkit.orig/Makefile	Sun Sep  7 11:24:17 2003
+++ chkrootkit/Makefile	Thu Sep 11 16:19:39 2003
@@ -7,6 +7,7 @@
 
 PORTNAME=	chkrootkit
 PORTVERSION=	0.41
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	ftp://ftp.pangeia.com.br/pub/seg/pac/
 
diff -urN chkrootkit.orig/files/patch-chkrootkit chkrootkit/files/patch-chkrootkit
--- chkrootkit.orig/files/patch-chkrootkit	Thu Sep  4 13:03:05 2003
+++ chkrootkit/files/patch-chkrootkit	Thu Sep 11 15:11:59 2003
@@ -74,7 +74,7 @@
  VERSION=`${uname} -r`
 +
 +if [ "${SYSTEM}" = "FreeBSD" ] ; then
-+   if [ -n '`uname -r | grep "^5"`' ] ; then
++   if [ "${VERSION}" != ${VERSION##5}  ] ; then
 +      FreeBSD5="yes"
 +   fi
 +fi
--- chkrootkit.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list