Subject: LKMs - different each time it's compiled into kernel ?
To: None <current-users@netbsd.org>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: current-users
Date: 11/29/1998 06:04:54
I'm trying to implement simple LKM registration - basically
I try "register" the module by making md5 hash of what modload is sending
as LKM code (and making (new) ioctl LMREGISTER instead of LMREADY on the end).
Only "registered" LKMs are permitted to be loaded.
But as the module is actually linked together each time modload is run,
it can slightly change, as the virtual addressing is remapped to
various physical addressing on link time. MD5 hash is different
each time and so is unsable.
Would it be somwhow possible to upload "raw" code into kernel and
let kernel relink it so it would work ?
--
Jaromir Dolecek <dolecek@ics.muni.cz> http://www.ics.muni.cz/~dolecek/
-------------------------------------------------------------------------
It is better never to have been born. But who among us has such luck?
One in a million, perhaps.