Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#254 closed defect (fixed)

Kernel check not working on Ubuntu 8.04 x86_64

Reported by: rainer Owned by: rainer
Priority: major Milestone: 2.8.5
Component: main Version:
Keywords: Cc:

Description

The kernel check seems not to work on Ubuntu 8.04 x86_64. Reported problems (by S. Clormann):

make[1]: Entering directory `/usr/local/src/samhain-2.8.4a/m_comp'
make -C /lib/modules/2.6.24-29-server/build modules SUBDIRS=/usr/local/src/samhain-2.8.4a/m_comp KBUILD_VERBOSE=2
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-29-server'
  CC [M]  /usr/local/src/samhain-2.8.4a/m_comp/samhain_kmem.o - due to target missing
/usr/local/src/samhain-2.8.4a/m_comp/samhain_kmem.c:279: warning: initialization from incompatible pointer type
/usr/local/src/samhain-2.8.4a/m_comp/samhain_kmem.c:323: error: _SH_VMLIST_LOCK_ undeclared here (not in a function)
make[3]: *** [/usr/local/src/samhain-2.8.4a/m_comp/samhain_kmem.o] Error 1
make[2]: *** [_module_/usr/local/src/samhain-2.8.4a/m_comp] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-29-server'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/local/src/samhain-2.8.4a/m_comp'
make: *** [samhain_kmem.ko] Error 2

as well as the following:

sudo /sbin/insmod samhain_kmem.ko; sudo ./kern_head > sh_ks.h; sudo 
/sbin/rmmod samhain_kmem

get_dispatch: did not find sys_call_table in system_call code
** This indicates that either your System.map does not match
** the currently running kernel, or that your System.map does
** not provide the required information, and thus use of
** the --with-kcheck option is not possible
kern_head: get_dispatch failed


Kernel version: Linux 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 
UTC 2011 x86_64 GNU/Linux

Change History (3)

comment:1 by rainer, 13 years ago

First couple of fixes committed as changeset [346].

comment:2 by anonymous, 13 years ago

Ubuntu 8.04 x86_64 has /dev/kmem, but it's not usable. Need to check usability in configure. Fixes commited as changeset [348], should work now.

comment:3 by rainer, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.