Re: Process Exit Notification within KEXT
Re: Process Exit Notification within KEXT
- Subject: Re: Process Exit Notification within KEXT
- From: Ed Wynne <email@hidden>
- Date: Sat, 27 Feb 2010 13:26:10 -0500
This is a common problem with a supported solution. Your daemon just
needs to hold open a user client connection to the kext. When your
daemon exits cleanly, clientClose() will be called, otherwise
clientDied() will be called. The IOKit infrastructure provides this
for you.
-Ed
On Feb 27, 2010, at 8:27 AM, Dave Keck wrote:
Hey list,
After exhausting all other options, I've determined that I need to
write a KEXT that will take advantage of the Kauth KPIs, which will
tighten the security around a specific process and its children. The
KEXT will be loaded by a daemon process, which will then register
itself with the KEXT as the process needing protection.
My problem is that of robustness: should the daemon crash, ideally the
KEXT would notice and tear down the resources that it held.
Unfortunately I'm not sure it's possible for a KEXT to be notified
when a process exits. I'm pretty certain it's impossible using the BSD
kernel KPIs, but perhaps there's a way with the Mach ones?
Thanks for any insight!
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@phasic.com
This email sent to email@hidden
_______________________________________________
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