Re: Overriding System Calls
- From: "Prafulla T" <prafulla.tekawade@xxxxxxxxx>
- Date: 24 Aug 2006 21:42:24 -0700
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
.
- Follow-Ups:
- Re: Overriding System Calls
- From: David Schwartz
- Re: Overriding System Calls
- From: gil_hamilton@xxxxxxxxxxx
- Re: Overriding System Calls
- References:
- Overriding System Calls
- From: Prafulla T
- Re: Overriding System Calls
- From: gil_hamilton@xxxxxxxxxxx
- Overriding System Calls
- Prev by Date: Where can i download linux sources?
- Next by Date: Re: Where can i download linux sources?
- Previous by thread: Re: Overriding System Calls
- Next by thread: Re: Overriding System Calls
- Index(es):
Relevant Pages
|
|