Re: programmatically loading and unloading drivers
Re: programmatically loading and unloading drivers
- Subject: Re: programmatically loading and unloading drivers
- From: Anatol Pomozov <email@hidden>
- Date: Mon, 31 Oct 2011 10:39:09 -0700
Hi
On Mon, Oct 31, 2011 at 6:35 AM, Joel Reymont
<email@hidden> wrote:
Is it possible to programmatically load and unload drivers?
KextManagerLoadKextWithURL and family does it. However there are few things to remember:
1) This API is available starting from 10.6
2) This requires superuser privileges
restriction 2) can be relaxed by using OSBundleAllowUserLoad field in the kext properties file
https://github.com/fuse4x/kext/blob/master/kext-Info.plist#L27 This allows user to load the kext if the kext is located in the standard extensions folder, unfortunately to unload it you still need superuser privileges.
_______________________________________________
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