Hooking a system call.
From: Mulyadi Santosa <hidden>
Date: 2012-03-26 08:27:49
From: Mulyadi Santosa <hidden>
Date: 2012-03-26 08:27:49
On Mon, Mar 26, 2012 at 15:14, V.Ravikumar [off-list ref] wrote:
But in my sample module example code for? intercepting system call. how can I make system_call_table address to writable so that one can change to customized system call.
My memory is a bit rigid about this part, but IIRC it's work of linker script that put the section that holds syscall table into read-only section. Not sure if that attribute could be changed on the fly -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com