2010-10-12 01:26:03 UTC
I'm working on a security project. In this project, I need insert a
batch of function, like a function pool, into kernel space. Here I
have two questions about this:
1: how can we make sure the code compatible with current kernel image.
Of course, we can build it like Loadable kernel module. But if we do
in this way, the second question comes up.
2: Loadable Kernel Module is dynamic linked. means some function call
address is filled when kernel load the module into kernel space.
However, in our project, we need the function pool work during booting
time (after the init.text functions). In this process, we can not use
insmod or modprobe to load LKM (Am I right about this?)
Is there any other ways to get compatible code? and How to insert
compatible code into kernel space during kernel boots up.