Re: Overriding System Calls



What should I do now?
Is is possible at all to do it?

gil_hamilton@xxxxxxxxxxx wrote:
Prafulla T wrote:
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?

The practice of replacing syscall table entries is frowned upon by
Linus and the other kernel maintainers -- so much so that the
sys_call_table symbol is no longer exported. This explains why your
module can't find it. If you care to know more details, use google to
find the (many and extensive) discussions about, for and against the
decision.

GH

.



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: Linux problems #1 - Cant compile Kernel
    ... compile menuconfig, it bombs saying Ncurses is not installed. ... Have you tried manually inserting the module into the kernel with insmod? ... velocityget.o: velocityget.o: unresolved symbol ...
    (comp.os.linux.setup)
  • 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 ...
    (comp.os.linux.development.system)
  • Re: Problem on installing syscall as module in Redhat 9.0
    ... I am just new to kernel programming. ... But now the insmod gives me another error: ... adder.o: unresolved symbol sys_call_table ... You forgot to compile it ...
    (alt.os.linux)
  • 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)