• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: kernel extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel extension


  • Subject: Re: kernel extension
  • From: Mike Fischer <email@hidden>
  • Date: Fri, 23 Jun 2006 22:20:51 +0200

Am 23.06.2006 um 21:03 schrieb David A Rowland <email@hidden>:

I'm trying to make a kernel extension launch at boot time by placing
a startup item in Library/StartupItems. I have followed all the
rules, I think. The directory structure is:

MyKext
   MyKext
   com.My.kext
   StartupItems.plist

Should be "StartupParameters.plist" I think. That's what I use.

So your kext bundle is actually installed inside the StartupItem? Why not in /System/Library/Extensions/ ?


All the permissions have been set by PackageMaker and seem to be
right -- root, wheel

Permissions for the StartupItem which work look like this:

/Library/StartupItems/MyKext				root:wheel 755
/Library/StartupItems/MyKext/MyKext			root:wheel 754
/Library/StartupItems/MyKext/StartupParameters.plist	root:wheel 644

Permissions for a kext which work in my case look like this:

/System/Library/Extensions/MyKext.kext root:wheel 755
/System/Library/Extensions/MyKext.kext/Contents root:wheel 755
/System/Library/Extensions/MyKext.kext/Contents/Info.plist root:wheel 644
/System/Library/Extensions/MyKext.kext/Contents/MacOS root:wheel 755
/System/Library/Extensions/MyKext.kext/Contents/MacOS/MyKext root:wheel 644





MyKext contains scripts to call kextload for the .kext

But it doesn't work. var/log/system.log seems to show a violation of
permissions, but I'm not sure that is the problem.

What does the following command in a Terminal window show?

$ sudo SystemStarter start "MyKext"
(assuming that "MyKext" is the service advertised in the StartupParameters.plist as "Provides")



Is there a sample installation for kernel extensions that I could examine?

I don't know. I do know that I have an installer which is able to install and load a StartupItem and a kext and activate both from its postflight script by doing this:


kextload /System/Library/Extensions/MyKext.kext
SystemStarter start "MyStartupService"


HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Address: Bundesstrasse 9, D-20146 Hamburg, Germany Phone: +49 (0)40/45038886, Fax: +49 (0)40/45038887

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: loginwindow.plist
  • Next by Date: Re: kernel extension
  • Previous by thread: Re: kernel extension
  • Next by thread: Re: kernel extension
  • Index(es):
    • Date
    • Thread