Package: chkrootkit
Version: 0.49-4.1
Severity: normal
File: /usr/sbin/chkrootkit
Tags: patch
Usertags: pca.it-security

Hi there!

The output speaks by itself:

--8<---------------cut here---------------start------------->8---
/etc/cron.daily/chkrootkit:
ERROR: chkrootkit output was not as expected.

The difference is:
---[ BEGIN: diff -u /var/log/chkrootkit/log.expected 
/var/log/chkrootkit/log.today ] ---
--- /var/log/chkrootkit/log.expected    2011-11-26 23:25:03.221541540 -0600
+++ /var/log/chkrootkit/log.today       2012-07-03 06:25:12.220193941 -0600
@@ -1,11 +1,14 @@
+/usr/sbin/chkrootkit: 27: [: Illegal number: 4-trunk-amd64
 Possible RH-Sharpe rootkit installed:
  /usr/bin/slice
--8<---------------cut here---------------end--------------->8---

The attached patch will be pushed to the Git repository as soon as this
bug gets a number:

--8<---------------cut here---------------start------------->8---
diff --git a/debian/patches/kallsyms.patch b/debian/patches/kallsyms.patch
index 24d4d68..cb68abd 100644
--- a/debian/patches/kallsyms.patch
+++ b/debian/patches/kallsyms.patch
@@ -12,7 +12,7 @@ Last-Update: 2012-07-04
  export _POSIX2_VERSION
  
 +# ksyms/kallsyms, depending on kernel version
-+if [ `uname -r | cut -d. -f2` -lt 6 ] ;
++if ! echo "$(uname -r | cut -d- -f 1) <= 2.6" | bc >/dev/null ;
 +then
 +KALLSYMS=ksyms ;
 +else
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages chkrootkit depends on:
ii  binutils               2.22-6.1
ii  debconf [debconf-2.0]  1.5.45
ii  libc6                  2.13-34
ii  net-tools              1.60-24.1
ii  procps                 1:3.3.3-2

chkrootkit recommends no packages.

chkrootkit suggests no packages.

-- debconf information:
  chkrootkit/run_daily_opts: -q
  chkrootkit/run_daily: true
  chkrootkit/diff_mode: true

Attachment: pgpbs8HNVSv2i.pgp
Description: PGP signature

Reply via email to