~ubuntu-branches/ubuntu/saucy/chkrootkit/saucy-security

« back to all changes in this revision

Viewing changes to debian/cron.daily

  • Committer: Bazaar Package Importer
  • Author(s): Giuseppe Iuculano
  • Date: 2009-08-28 10:29:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090828102914-0f0p04tjj6t5q90h
Tags: 0.49-3
* [543dafe] Fixed chkutmp parser and added a regexp to ignore PIDs in
  chkutmp output, thanks to Aaron M. Ucko. (Closes: #542327)
* [d016db0] chkutmp: sort ps output by tty,ruser,args. Thanks to Aaron
  M. Ucko
* [c1fb66c] Updated to standards version 3.8.3 (No changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                                $CHKROOTKIT $RUN_DAILY_OPTS > $LOG_DIR/log.today.raw 2>&1
20
20
                                # the sed expression replaces the messages about /sbin/dhclient3 /usr/sbin/dhcpd3
21
21
                                # with a message that is the same whatever order eth0 and eth1 were scanned
22
 
                                sed -r 's,eth(0|1)(:[0-9])?: PACKET SNIFFER\((/sbin/dhclient3|/usr/sbin/dhcpd3)\[[0-9]+\]\),eth\[0|1\]: PACKET SNIFFER\([dhclient3|dhcpd3]{PID}\),' $LOG_DIR/log.today.raw > $LOG_DIR/log.today
 
22
                                sed -r -e 's,eth(0|1)(:[0-9])?: PACKET SNIFFER\((/sbin/dhclient3|/usr/sbin/dhcpd3)\[[0-9]+\]\),eth\[0|1\]: PACKET SNIFFER\([dhclient3|dhcpd3]{PID}\),' \
 
23
                                -e 's/(! \w+\s+)[ 0-9]{4}[0-9]/\1#####/' $LOG_DIR/log.today.raw > $LOG_DIR/log.today
23
24
        if [ ! -f $LOG_DIR/log.expected ]; then
24
25
                                                echo "ERROR: No file $LOG_DIR/log.expected"
25
26
                                                echo "This file should contain expected output from chkrootkit"