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