Kernal Extension
Kernal Extension
- Subject: Kernal Extension
- From: "Setaro, James" <email@hidden>
- Date: Thu, 18 Nov 2004 13:47:52 -0600
I am writing a kernal extension for 10.1.5.
I am trying to call kmodstat from inside the of the MoreAuthSample(setuid(0)
for admin) tool using pipes(to check the output) and execlp to make sure
that my extension is loaded at run-time.
I have tried everything I can think of but it won't execute. I think that I
am not setting
up the enviroment correctly and exec can't find the the kmodstat command,
but I don't know where to look for answers on setting this a exec enviroment
or if it is even possible to execute kmodstat from execl.
Right now I am trying to excute this:
execlp( "/usr/sbin/kmodstat", "/usr/sbin/kmodstat", NULL );
but it seems to just break my pipe. Signal status: 10
kextload and kextunload seem to work fine. Any ideas?
Thanks,
James
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
_______________________________________________
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