sudo kextcache --clear-staging clears /Library/StageExtensions directory

I have a small kernel extension program which was giving an error for no reason, the error is below:

(error code dc00800d: (libkern/kext) authentication failure (file ownership/permissions))

When I did kextutil on my kext I got following error

Kext rejected due to improper filesystem permissions: <OSKext 0x7f8a3dc26480 [0x7fff836acaf0]> { URL = "file:///Library/StagedExtensions/Library/sampleKext/", ID = "com.apple.sampleKext" }

Kext rejected due to improper filesystem permissions: <OSKext 0x7f8a3dc26480 [0x7fff836acaf0]> { URL = "file:///Library/StagedExtensions//Library/sampleKext", ID = "com.apple.sampleKext" }

Diagnostics for /Library/sampleKext:

Authentication Failures:

File owner/permissions are incorrect (must be root:wheel, nonwritable by group/other):

/Library/StagedExtensions/Library/sampleKext

Contents

_CodeSignature

CodeResources

MacOS

sampleKext

Info.plist



I have root:wheel owners, so it should not give me these errors


But after I ran sudo kextcache --clear-staging , it solved my problem.


What does this command do ? There is no documentation for this command.


Does anyone have the solution to my problem?

MacBook Pro, macOS High Sierra (10.13.6), On operating system 10.14

Posted on Nov 20, 2018 2:08 AM

Reply

Similar questions

3 replies

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sudo kextcache --clear-staging clears /Library/StageExtensions directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.