site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Setaro, James