Overriding functionality with modules in Linux kernel

后端 未结 13 1957
鱼传尺愫
鱼传尺愫 2020-12-24 13:59

Without getting into the details of why, I\'m looking for a clean (as possible) way to replace kernel functions and system calls from a loadable module. My initial

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 14:25

    This might prove a useful read to you.

    Basically, since the system call table is not directly exported in newer kernels, you have to do some searching to determine its location yourself. Then you can intercept your system calls of choice and manipulate them. Replacing other kernel functions, though, will be much more difficult, unless some of them are organized the same way system calls are (they appear on some dispatch table etc.) - which is not at all common.

提交回复
热议问题