Re: Network Kernel Extensions and unloading...
Re: Network Kernel Extensions and unloading...
- Subject: Re: Network Kernel Extensions and unloading...
- From: Stephane Sudre <email@hidden>
- Date: Thu, 21 Sep 2006 16:34:09 +0200
On 21 sept. 06, at 15:22, Jérome Foucher wrote:
Hi all,
I think I'm missing something relly important here, but I can't find
what.
I have a network kernel extension, based on KauthORama.
It seems to me that once loaded manually, the kext does not unload
automatically if the user tries to shutdown his machine. The "stop"
function of my kext is never called automatically if ones tries to
shutdown or restart the computer.
In "normal" use, it's not a big deal, as my application unloads the
kext when exiting. But if the app crashes or is "killed -9", the kext
is not unloaded and the user gets a nice kernel panic when shuting
down his computer.
Can anyone tell me what I'm missing here ?
Why should it be unloaded automatically if it's loaded manually?
The KP could probably be prevented by, for instance, sending the PID of
the process to the kext and checking in the kext for this PID before
doing something "dangerous". Of course, this does not take into account
the case where the PID is reused.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden