Overriding System Calls



Hello experts,
We are trying to override the system call in Linux.
We have downloaded the sample code from this location

http://www.faqs.org/docs/kernel/x931.html

We are giving
gcc -c -O2 -DMODULE -D__KERNEL__ syscall.c -I
/lib/modules/2.4.20-8/build/include

as a command to compile this source code.
It compiles without giving any error.
But when we insmod this module,it gives just one error as

[root@localhost root]# insmod syscall.o
syscall.o: unresolved symbol sys_call_table

Where are we going wrong?
Thanks in advance.

.



Relevant Pages

  • Re: Overriding System Calls
    ... We have downloaded the sample code from this location ... as a command to compile this source code. ... But when we insmod this module,it gives just one error as ... syscall.o: unresolved symbol sys_call_table ...
    (comp.os.linux.development.system)
  • Re: Overriding System Calls
    ... We have downloaded the sample code from this location ... as a command to compile this source code. ... But when we insmod this module,it gives just one error as ... syscall.o: unresolved symbol sys_call_table ...
    (comp.os.linux.development.system)
  • Re: String Manipulations
    ... >> Unicode although after taking your advice it worked as I originally ... >> within the same scope of the CString example that wont compile either. ... >> Perhaps my project environment needs to be adjusted a bit? ... >> sample code shouldn't be this cumbersome. ...
    (microsoft.public.vc.language)
  • Re: ExportXML
    ... The sample code, taken from Business Solutions Access 2007 VBA book, ... The message I get when I run from immediate window is: ... "Compile error: Argument not optional" ... Public Sub ExportQuery(strSource As String, strPath As String, strTarget ...
    (microsoft.public.access.modulesdaovba)
  • Re: C string array problems (again)
    ... subsequent entries to consist of just the pathless file name ... the command line comes through ... And the MS sample code starts reading at array. ...
    (microsoft.public.vb.general.discussion)