Hi all,
when I use below steps to check my kext file on MacOS 10.15, it returns errors:
Execute below commands on terminal:
sudo chown -R root:wheel kextname.kext
sudo chmod -R 755 kextname.kext
sudo kextload kextname.kext
Terminal shows below message:
/path/kextname.kext failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).
sudo kextutil kextname.kext
Terminal shows below message:
Kext rejected due to system policy: <OSKext 0x7fec84d68e80 [0x7fff8ddbfb00]> { URL = "file:///Library/StagedExtensions/Library/Extensions/kextname.kext/", ID = "com.myname.driver.***" }
/Library/StagedExtensions/Library/Extensions/kextname.kext does not authenticate; omitting.
Kext rejected due to system policy: <OSKext 0x7fa2514d9f80 [0x7fff8ddbfb00]> { URL = "file:///Library/StagedExtensions/Library/Extensions/kextname.kext/", ID = "com.myname.driver.***" }
I've tried to execute command:
codesign -vvv --deep --strict kextname.kext on terminal
Terminal shows below message:
kextname.kext: valid on disk
kextname.kext: satisfies its Designated Requirement
My step to generate kext:
1. Generate my certificate and upload it by my developer ID, and then download the certificate
2. Use Xcode 11.1 to build kext successfully:
Signing & Capabilities:
- Automatically mange signing: unchecked
- Signing Certificate: select Developer iD Application which I downloaded
Build Settings:
- Signing:
Code Signing Identity: Developer ID Application
Code Signing Inject Base Entitlements: No
Development Team: my team name
Enable Hardened Runtime: Yes
Resources/Info.plist:
- OSBundleLibraries
com.apple.kpi.iokit: 19.0.0
com.apple.kpi.libkern: 19.0.0
Is there a way to known the detail for "Kext rejected due to system policy" error? Or to solve it?
Thanks.
Sean