Changeset 348
- Timestamp:
- Jun 11, 2011, 7:07:47 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r347 r348 12 12 dnl start 13 13 dnl 14 AM_INIT_AUTOMAKE(samhain, 2.8. 4a)14 AM_INIT_AUTOMAKE(samhain, 2.8.5) 15 15 AC_DEFINE([SAMHAIN], 1, [Application is samhain]) 16 16 AC_CANONICAL_HOST … … 2130 2130 sh_libkvm="-lkvm" 2131 2131 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 2135 2145 # need kernel module 2136 2146 -
trunk/src/sh_kern.c
r321 r348 1099 1099 { 1100 1100 struct proc_dir_entry proc_root_dir; 1101 struct inode_operations * proc_root_inode_op = NULL;1101 int proc_root_inode_op_flag = 0; 1102 1102 1103 1103 /* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */ … … 1120 1120 if (((unsigned long) * &proc_root_dir.proc_iops) == proc_root_iops) 1121 1121 { 1122 proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.proc_iops);1122 proc_root_inode_op_flag = 1; 1123 1123 } 1124 1124 else if (proc_root_dir.size == proc_root_iops) 1125 1125 { 1126 proc_root_inode_op = (struct inode_operations *) &(proc_root_dir.size);1126 proc_root_inode_op_flag = 1; 1127 1127 } 1128 1128 else if ((unsigned long) * &proc_root_dir.proc_fops == proc_root_iops) 1129 1129 { 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) 1134 1134 { 1135 1135 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_KERN_PROC,
Note:
See TracChangeset
for help on using the changeset viewer.