Re: EXPORT_SYMBOL and rebinding functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux