EXPORT_SYMBOL and rebinding functions
Peter Tosh
blackspire.rider at gmail.com
Tue Jun 3 00:19:41 EDT 2014
Is this just a horrible idea in general? Can you give some kind of
general explanation?
On Mon, 2014-06-02 at 20:57 -0700, Greg KH wrote:
> 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