Changeset 348 for trunk


Ignore:
Timestamp:
Jun 11, 2011, 7:07:47 AM (13 years ago)
Author:
katerina
Message:

More fixes for ticket #254: Kernel check not working on Ubuntu 8.04 x86_64

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r347 r348  
    1212dnl start
    1313dnl
    14 AM_INIT_AUTOMAKE(samhain, 2.8.4a)
     14AM_INIT_AUTOMAKE(samhain, 2.8.5)
    1515AC_DEFINE([SAMHAIN], 1, [Application is samhain])
    1616AC_CANONICAL_HOST
     
    21302130                        sh_libkvm="-lkvm"
    21312131                elif test -f "${systemmap}"; then
    2132                         if test -c /dev/kmem; then
    2133                            :
    2134                         else
     2132
     2133                        test_kmap_open=no
     2134
     2135                        if test -c /dev/kmem; then
     2136                           AC_MSG_CHECKING([whether /dev/kmem is useable])
     2137                           dd bs=4 if=/dev/kmem of=/dev/null 2>&1 | grep opening >/dev/null
     2138                           if test $? -ne 0; then
     2139                              test_kmap_open=yes
     2140                           fi
     2141                           AC_MSG_RESULT([${test_kmap_open}])
     2142                        fi
     2143
     2144                        if test x"${test_kmap_open}" = xno; then
    21352145                           # need kernel module
    21362146
  • trunk/src/sh_kern.c

    r321 r348  
    10991099{
    11001100  struct proc_dir_entry     proc_root_dir;
    1101   struct inode_operations * proc_root_inode_op = NULL;
     1101  int                       proc_root_inode_op_flag = 0;
    11021102
    11031103/* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */
     
    11201120  if (((unsigned long) * &proc_root_dir.proc_iops) == proc_root_iops)
    11211121    {
    1122       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.proc_iops);
     1122      proc_root_inode_op_flag = 1;
    11231123    }
    11241124  else if (proc_root_dir.size == proc_root_iops)
    11251125    {
    1126       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.size);
     1126      proc_root_inode_op_flag = 1;
    11271127    }
    11281128  else if ((unsigned long) * &proc_root_dir.proc_fops == proc_root_iops)
    11291129    {
    1130       proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.proc_fops);
    1131     }
    1132 
    1133   if (!proc_root_inode_op)
     1130      proc_root_inode_op_flag = 1;
     1131    }
     1132
     1133  if (0 == proc_root_inode_op_flag)
    11341134    {
    11351135      sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_KERN_PROC,
Note: See TracChangeset for help on using the changeset viewer.