Jump to content
guedz

KAVMonitor on Mandriva 2006

Recommended Posts

Hi,

 

i have make a upgrade of my OS linux => Linux mandrake 10.1 => Linux Mandriva 2006.0

 

The upgrade is OK all works perflectly.

 

After the upgrade i launch a new compilation of kavmonitor for the new kernel :

 

Would you like to compile the kavmonitor module [Y]: y

Enter the linux kernel source path [/lib/modules/2.6.12-18mdk/build]:

 

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

Mandriva Linux release 2006.0 (Official) for i586

checking for linux kernel sources... /lib/modules/2.6.12-18mdk/build

checking for linux kernel version... 2.6

checking for vmlinux... "not found"

checking for sys_close is exported... no, sys_close address=0xc01b5c30

checking for do_execve is exported... no, do_execve address=0xc01c1e40

configure: creating ./config.status

config.status: creating Makefile

config.status: creating kavmon.h

config.status: creating osdef.h

config.status: creating module.linux/Makefile

Cleaning module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/src/module.linux'

rm -f **.o *.ko ../bin//kavmon.ko monitor_helpers.c kernel.c queue.c    md5.c cache.c util.c  cache.h  kavmon.h  kernel.h  md5.h  monitor.h  monitor_helpers.h  osdef.h  queue.h  util.h *.mod.c Makefile.in

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

Making link in module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/src/module.linux'

make -C /lib/modules/2.6.12-18mdk/build SUBDIRS=/opt/kav/5.5/kav4unix/src/module.linux modules

make[2]: Entering directory `/usr/src/linux-2.6.12-18mdk'

 

  WARNING: Symbol version dump /usr/src/linux-2.6.12-18mdk/Module.symvers

          is missing; modules will have no dependencies and modversions.

 

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/utils.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/module.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface.o

/opt/kav/5.5/kav4unix/src/module.linux/interface.c: In function 'monitor_proc_read':

/opt/kav/5.5/kav4unix/src/module.linux/interface.c:116: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface_monitor.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface_exploit.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interceptor.o

/opt/kav/5.5/kav4unix/src/module.linux/interceptor.c: In function 'monitor_exec_net_denied':

/opt/kav/5.5/kav4unix/src/module.linux/interceptor.c:272: error: 'struct inode' has no member named 'i_sock'

make[3]: *** [/opt/kav/5.5/kav4unix/src/module.linux/interceptor.o] Erreur 1

make[2]: *** [_module_/opt/kav/5.5/kav4unix/src/module.linux] Erreur 2

make[2]: Leaving directory `/usr/src/linux-2.6.12-18mdk'

make[1]: *** [kavmon_build] Erreur 2

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

make: *** [all] Erreur 1

Kavmon module compilation error

 

Someone have got an idea about this problem ???

 

Thanks for your help

Share this post


Link to post

Hello,

Please try to use interceptor.c (in attach).

You need to replace it with old /opt/kav/5.5/kav4unix/src/module.linux/interceptor.c.

And start /opt/kav/5.5/kav4unix/src/build.pl for compile kavmonitor module again.

The error still exist?

 

I'm very sorry for my poor english.

 

WBR, Shvetsov Valery.

interceptor.rar

Share this post


Link to post

Hi,

 

with your interceptor.c :

 

[root@guedz src]# ./build.pl

Would you like to compile the kavmonitor module [Y]: Y

Enter the linux kernel source path [/lib/modules/2.6.12-18mdk/build]:

 

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

Mandriva Linux release 2006.0 (Official) for i586

checking for linux kernel sources... /lib/modules/2.6.12-18mdk/build

checking for linux kernel version... 2.6

checking for vmlinux... "not found"

checking for sys_close is exported... no, sys_close address=0xc01b5c30

checking for do_execve is exported... no, do_execve address=0xc01c1e40

configure: creating ./config.status

config.status: creating Makefile

config.status: creating kavmon.h

config.status: creating osdef.h

config.status: creating module.linux/Makefile

Cleaning module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/src/module.linux'

rm -f **.o *.ko ../bin//kavmon.ko monitor_helpers.c kernel.c queue.c    md5.c cache.c util.c  cache.h  kavmon.h  kernel.h  md5.h  monitor.h  monitor_helpers.h  osdef.h  queue.h  util.h *.mod.c Makefile.in

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

Making link in module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/src/module.linux'

make -C /lib/modules/2.6.12-18mdk/build SUBDIRS=/opt/kav/5.5/kav4unix/src/module.linux modules

make[2]: Entering directory `/usr/src/linux-2.6.12-18mdk'

 

  WARNING: Symbol version dump /usr/src/linux-2.6.12-18mdk/Module.symvers

          is missing; modules will have no dependencies and modversions.

 

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/utils.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/module.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface.o

/opt/kav/5.5/kav4unix/src/module.linux/interface.c: In function 'monitor_proc_read':

/opt/kav/5.5/kav4unix/src/module.linux/interface.c:116: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface_monitor.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interface_exploit.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/interceptor.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/files.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/monitor_helpers.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/kernel.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/queue.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/md5.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/cache.o

  CC [M]  /opt/kav/5.5/kav4unix/src/module.linux/util.o

  LD [M]  /opt/kav/5.5/kav4unix/src/module.linux/kavmon.o

  Building modules, stage 2.

  MODPOST

  CC      /opt/kav/5.5/kav4unix/src/module.linux/kavmon.mod.o

  LD [M]  /opt/kav/5.5/kav4unix/src/module.linux/kavmon.ko

make[2]: Leaving directory `/usr/src/linux-2.6.12-18mdk'

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

Share this post


Link to post

×
×
  • Create New...

Important Information

We use cookies to make your experience of our websites better. By using and further navigating this website you accept this. Detailed information about the use of cookies on this website is available by clicking on more information.