mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to hack syscall-table, in kernel 2.6+ ?
@ 2012-08-14 11:31 Ajay Garg
  2012-08-14 11:32 ` Felipe Balbi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ajay Garg @ 2012-08-14 11:31 UTC (permalink / raw)
  To: linux-kernel

Hi all.

It is well known that the syscall-table had stopped being exported
from version 2.6 onwards.

So, now as a developer, if I wish to hack into the syscall-table, and
change the syscall-function-pointers to my custom-function-pointers
(mainly for the reason of adding/preventing access to certain files,
via Kernel-Loadable-Modules), what is the recommended way?

I have already tried extracting the address of the "sys_call_table"
from "System.Map"; however, I am still not able to replace the
function-pointers with mine.
Trying to do gives me page-faults, apparently meaning that the
syscall-table memory area is read-only.



I will be grateful, if someone could point me to the recommended way
of doing this.


Thanks and Regards,
Ajay

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-14 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-14 11:31 How to hack syscall-table, in kernel 2.6+ ? Ajay Garg
2012-08-14 11:32 ` Felipe Balbi
2012-08-14 11:35 ` richard -rw- weinberger
2012-08-14 12:40 ` Alan Cox
2012-08-14 16:13   ` Ajay Garg
2012-08-14 16:33     ` richard -rw- weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®