Changeset 277


Ignore:
Timestamp:
Mar 22, 2010, 9:02:38 PM (15 years ago)
Author:
katerina
Message:

Fix for bug in kernel check (ticket #198).

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r275 r277  
    1212dnl start
    1313dnl
    14 AM_INIT_AUTOMAKE(samhain, 2.6.3)
     14AM_INIT_AUTOMAKE(samhain, 2.6.4)
    1515AC_DEFINE([SAMHAIN], 1, [Application is samhain])
    1616AC_CANONICAL_HOST
  • trunk/docs/Changelog

    r276 r277  
    112.6.4:
     2        * Don't read proc_root_iops in sh_kern.c (Problem report
     3          by H. R.)
     4        * Logfile check can check output of shell commands
    25        * Use data directory as default for logfile checkpoints
     6        * Fix broken checkpoint save/restore for logfiles
    37
    482.6.3:
  • trunk/src/sh_kern.c

    r252 r277  
    658658                             sizeof(proc_root_dir)))
    659659        status = -7;
     660    }
     661/* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */
     662#if SH_KERNEL_NUMBER < 132629
     663  if(status == 0)
     664    {
    660665      if (sh_kern_read_data (kd, proc_root_iops,
    661666                             (unsigned char *) &proc_root_inode,
     
    663668        status = -8;
    664669    }
     670#else
     671  memset(&proc_root_inode, '\0', sizeof(proc_root_inode));
     672#endif
    665673 
    666674  /*
  • trunk/src/sh_log_check.c

    r276 r277  
    896896      status = (int) sh_string_read(s, logfile->fp, 8192);
    897897
    898       fprintf(stderr, "FIXME: %s\n", sh_string_str(s));
     898      /* fprintf(stderr, "FIXME: %s\n", sh_string_str(s)); */
    899899
    900900      /* restore old signal handler
Note: See TracChangeset for help on using the changeset viewer.