Package: lynis
Version: 1.3.9-1
Severity: normal
Dear Maintainer,
While reviewing the test_scheduling script for Lynis, I realized that
while it had fairly comprehensive tests for cron jobs it did not include
tests for jobs called from /etc/anacrontab. I worked up a quick patch
that adds equivalent tests for anacrontab as existed for crontabs.
I've attached the patch I worked up for consideration.
Thanks again,
Dave Vehrs
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12-1-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
lynis depends on no packages.
Versions of packages lynis recommends:
ii menu 2.1.46
Versions of packages lynis suggests:
ii dnsutils 1:9.8.4.dfsg.P1-6+nmu3
-- no debconf information
--
Dave Vehrs dve...@gmail.com
--- tests_scheduling.orig 2014-01-20 14:19:05.039833428 -0700
+++ tests_scheduling 2014-01-20 14:47:46.557432597 -0700
@@ -113,6 +113,18 @@
fi
fi
Display --indent 2 --text "- Checking crontab/cronjob" --result DONE --color GREEN
+
+ ## Anacron on Linux
+ if [ "${OS}" = "Linux" ]; then
+ if [ -f /etc/anacrontab ]; then
+ sANACRONJOBS=`egrep '^([0-9@])' /etc/anacrontab | tr '\t' ' ' | tr -s ' ' | tr ' ' ','`
+ for J in ${sANACRONJOBS}; do
+ logtext "Found anacron job (/etc/anacrontab): ${J}"
+ done
+ Display --indent 2 --text "- Checking anacrontab" --result DONE --color GREEN
+ fi
+ fi
+
fi
#
#################################################################################