Syscall trapping in 2.4.20-8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I seem to have a problem. I have a code which traps the sys_exit call in
order to know about
terminating threads .
When upgrading to redhat 2.4.20-8  I cannot locate the sys_exit ,
sys_socketcall which helped
hacking into the syscall table , does anyone know about a solution , or any
other way I can 
follow terminating threads in my system.

The hack code is the following :

begin = (unsigned long *) &system_utsname;
for (i=0;i<1024;i++) 
{
   if (*(begin+i) == (unsigned long) sys_socketcall) 
   {
      sys_call_table = (void *) (begin+i-__NR_socketcall);
      //are you sure?
      if (sys_call_table[__NR_exit]==(void *) sys_exit) 
      {
         Status = PAKRNL_STATUS_SUCCESS;
      }
   }
}

Koby
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux