Bug#892012: rkhunter: == is a bashism (unexpected operator on line 14795)

Aaron M. Ucko ucko at debian.org
Sun Mar 4 04:23:18 UTC 2018


Package: rkhunter
Version: 1.4.6-1
Severity: important
Tags: upstream

The latest rkhunter version is broken on my system, which uses dash
for /bin/sh:

  /etc/cron.daily/rkhunter:
  /usr/bin/rkhunter: 14795: [: /usr/sbin/apache2: unexpected operator

Line 14795 reads

									if [ "${RKH_SHM_PATH}" == "${RKH_SHM_PATH_STRIPPED}" ]; then

Please substitute = for == here; the latter is a bashism.

Thanks!

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rkhunter depends on:
ii  binutils                2.30-5
ii  cdebconf [debconf-2.0]  0.241
ii  debconf [debconf-2.0]   1.5.65
ii  file                    1:5.32-2
ii  lsof                    4.89+dfsg-0.1
ii  net-tools               1.60+git20161116.90da8a0-2
ii  perl                    5.26.1-5
ii  ucf                     3.0038

Versions of packages rkhunter recommends:
ii  bsd-mailx [mailx]                          8.1.2-0.20160123cvs-4
ii  curl                                       7.58.0-2
ii  e2fsprogs                                  1.43.9-2
ii  exim4-daemon-heavy [mail-transport-agent]  4.90.1-1
ii  iproute2                                   4.15.0-2
ii  mailutils [mailx]                          1:3.4-1
ii  s-nail                                     14.9.6-3
ii  unhide                                     20130526-1
ii  unhide.rb                                  22-2
ii  wget                                       1.19.4-1

Versions of packages rkhunter suggests:
ii  liburi-perl     1.73-1
ii  libwww-perl     6.31-1
ii  powermgmt-base  1.31+nmu1

-- Configuration Files:
/etc/logcheck/ignore.d.server/rkhunter [Errno 13] Permission denied: '/etc/logcheck/ignore.d.server/rkhunter'

-- debconf information:
* rkhunter/cron_db_update: true
* rkhunter/apt_autogen: true
* rkhunter/cron_daily_run: true



More information about the forensics-devel mailing list