EXPORT_SYMBOL and rebinding functions
Greg KH
greg at kroah.com
Mon Jun 2 23:57:46 EDT 2014
On Mon, Jun 02, 2014 at 08:29:16PM -0700, Peter Tosh wrote:
> Hey guys,
>
> I have a module which defines a specific print function, and another
> module that uses said function. From the first module I have used
> EXPORT_SYMBOL(function_1). From within the second module I would like to
> rebind that function to another printing function, and once I'm
> finished, rebind it back to the original function.
Wait, why?
Don't have modules messing with the function pointers of other modules,
that way lies madness.
Or root kits, which honestly, there are better ways of making money if
you have Linux kernel skills.
don't do this.
greg k-h
More information about the Kernelnewbies
mailing list