From ef7cad36447a0286df22544f03c10e1769ccddad Mon Sep 17 00:00:00 2001 From: zbyniu Date: Thu, 27 Dec 2007 02:13:56 +0000 Subject: [PATCH] - up to 0.48 Changed files: chkrootkit-names.patch -> 1.14 chkrootkit.spec -> 1.49 --- chkrootkit-names.patch | 28 ++++++++++++++-------------- chkrootkit.spec | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/chkrootkit-names.patch b/chkrootkit-names.patch index 4df1330..fbca4b8 100644 --- a/chkrootkit-names.patch +++ b/chkrootkit-names.patch @@ -98,17 +98,17 @@ then if [ "${QUIET}" != "t" ]; then echo "chkwtmp: nothing deleted"; fi fi -@@ -267,8 +267,8 @@ +@@ -275,8 +275,8 @@ prog="" if [ \( "${SYSTEM}" = "Linux" -o \( "${SYSTEM}" = "FreeBSD" -a \ - `echo ${V} | ${awk} '{ if ($1 > 4.3) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then -- [ ! -x ./chkproc ] && prog="./chkproc" -- [ ! -x ./chkdirs ] && prog="$prog ./chkdirs" -+ [ ! -x /usr/bin/chkrootkit-chkproc ] && prog="/usr/bin/chkrootkit-chkproc" -+ [ ! -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs" - if [ "$prog" != "" ]; then - # echo "not tested: can't exec $prog" - return ${NOT_TESTED} + `echo ${V} | ${awk} '{ if ($1 > 4.3 || $1 < 6.0) print 1; else print 0 }'` -eq 1 \) \) -a "${ROOTDIR}" = "/" ]; then +- [ -x ./chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="./chkproc" +- [ -x ./chkdirs ] && prog="$prog ./chkdirs" ++ [ -x /usr/bin/chkrootkit-chkproc -a "`find /proc | wc -l`" -gt 1 ] && prog="/usr/bin/chkrootkit-chkproc" ++ [ -x /usr/bin/chkrootkit-chkdirs ] && prog="$prog /usr/bin/chkrootkit-chkdirs" + if [ "$prog" = "" ]; then + echo "not tested: can't exec $prog" + return ${NOT_TESTED} @@ -280,7 +280,7 @@ PV=`$ps -V 2>/dev/null| $cut -d " " -f 3 |$awk -F . '{ print $1 "." $2 $3 }' | ${awk} '{ if ($0 > 3.19) print 2; else print 1 }'` [ "$PV" = "" ] && PV=1 @@ -118,15 +118,15 @@ return 5 fi -@@ -306,7 +306,7 @@ +@@ -315,7 +315,7 @@ if [ "${DEBUG}" = "t" ]; then ${echo} "*** PV=$PV ***" fi -- if ./chkproc -p ${PV} -+ if /usr/bin/chkrootkit-chkproc -p ${PV} - then - if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi +- if ./chkproc -p ${PV}; then ++ if /usr/bin/chkrootkit-chkproc -p ${PV}; then + if [ "${QUIET}" != "t" ]; then echo "chkproc: nothing detected"; fi else + echo "chkproc: Warning: Possible LKM Trojan installed" @@ -1582,18 +1582,18 @@ if [ "${SYSTEM}" = "Linux" ] diff --git a/chkrootkit.spec b/chkrootkit.spec index a2b6832..2218fdb 100644 --- a/chkrootkit.spec +++ b/chkrootkit.spec @@ -3,12 +3,12 @@ Summary: chkrootkit - locally checks for signs of a rootkit Summary(pl.UTF-8): chkrootkit - narzędzie do lokalnego szukania oznak rootkitów Name: chkrootkit -Version: 0.47 +Version: 0.48 Release: 1 License: AMS (BSD like; look at COPYRIGHT) Group: Applications/Networking Source0: ftp://ftp.pangeia.com.br/pub/seg/pac/%{name}-%{version}.tar.gz -# Source0-md5: 4c6455d202cef35395a673386e4bf01a +# Source0-md5: de8b8b5013e7faa2b66c0e33c59677e8 Source1: %{name}-check Source2: %{name}.sysconfig Patch0: %{name}-CC.patch -- 2.44.0