-
Notifications
You must be signed in to change notification settings - Fork 8
Enhanced Innie: Automatic MacKernelSDK Submodule Initialization #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
startergo
wants to merge
4
commits into
cdf:master
Choose a base branch
from
startergo:enhanced-innie-improvements
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ed5fc96
Enhanced Innie for better consistency and RAID support
startergo ea533d6
Enhanced Innie: Add automatic MacKernelSDK submodule initialization
startergo 0e0ed3f
Enhanced Innie: Code quality improvements and bug fixes
startergo 98ac349
Fix DEBUG build functionality in build systems
startergo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "MacKernelSDK"] | ||
| path = MacKernelSDK | ||
| url = https://github.com/acidanthera/MacKernelSDK.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,166 @@ | ||
| # Code Signing Guide for Innie Kernel Extension | ||
|
|
||
| This guide shows how to sign the Innie kernel extension with your Apple Developer account to avoid disabling SIP. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| 1. **Apple Developer Account** (Individual or Organization - Enterprise not required) | ||
| 2. **Xcode** installed with Command Line Tools | ||
| 3. **Valid Developer ID Application certificate** | ||
|
|
||
| ## Step 1: Obtain Developer Certificates | ||
|
|
||
| ### Method A: Through Xcode (Recommended) | ||
| 1. Open **Xcode** | ||
| 2. Go to **Xcode β Preferences β Accounts** (or **Xcode β Settings β Accounts** in newer versions) | ||
| 3. Click the **"+"** button and **Add Apple ID** | ||
| 4. Enter your Apple ID credentials that have the Developer account | ||
| 5. After signing in, select your **Team** from the list | ||
| 6. Click **"Manage Certificates..."** | ||
| 7. Click the **"+"** button and select **"Developer ID Application"** | ||
| 8. This creates and downloads the certificate you need for kernel extension signing | ||
|
|
||
| ### Method B: Through Apple Developer Portal (Alternative) | ||
| 1. Log into [developer.apple.com](https://developer.apple.com) | ||
| 2. Go to **Certificates, Identifiers & Profiles** | ||
| 3. Click **Certificates** β **"+"** button | ||
| 4. Select **"Developer ID Application"** (under Production section) | ||
| 5. Follow the prompts to create a Certificate Signing Request (CSR) | ||
| 6. Upload the CSR and download the certificate | ||
| 7. Double-click the downloaded certificate to install it | ||
|
|
||
| ### Troubleshooting Certificate Setup | ||
| If you see "0 valid identities found" after setup: | ||
| - Restart Xcode and check Preferences β Accounts again | ||
| - Ensure you're signed into the correct Apple ID with Developer program | ||
| - Try logging out and back into your Apple ID in Xcode | ||
| - Check Keychain Access app - certificates should appear in "login" keychain | ||
|
|
||
| ## Step 2: Verify Certificates | ||
|
|
||
| Check available signing identities: | ||
| ```bash | ||
| security find-identity -v -p codesigning | ||
| ``` | ||
|
|
||
| You should see something like: | ||
| ``` | ||
| 1) ABCDEF1234567890 "Developer ID Application: Your Name (TEAMID123)" | ||
| ``` | ||
|
|
||
| ## Step 3: Sign the Kernel Extension | ||
|
|
||
| ### Automatic Signing (Update Xcode Project) | ||
|
|
||
| Edit the Innie Xcode project to enable automatic signing: | ||
|
|
||
| 1. Open `Innie.xcodeproj` in Xcode | ||
| 2. Select the **Innie** target | ||
| 3. In **Signing & Capabilities**: | ||
| - Check **Automatically manage signing** | ||
| - Select your **Team** | ||
| - **Bundle Identifier**: `com.yourname.kext.Innie` | ||
| 4. Build the project - it will be signed automatically | ||
|
|
||
| ### Manual Signing (Command Line) | ||
|
|
||
| If you prefer command line signing: | ||
|
|
||
| ```bash | ||
| # Sign the kernel extension | ||
| codesign --force --sign "Developer ID Application: Your Name (TEAMID)" \ | ||
| --entitlements Innie.entitlements \ | ||
| build/Release/Innie.kext | ||
|
|
||
| # Verify signature | ||
| codesign -vvv --deep --strict build/Release/Innie.kext | ||
| spctl -a -t exec -vv build/Release/Innie.kext | ||
| ``` | ||
|
|
||
| ## Step 4: Create Entitlements File | ||
|
|
||
| Kernel extensions need specific entitlements: | ||
|
|
||
| **File: `Innie.entitlements`** | ||
| ```xml | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>com.apple.developer.driverkit.allow-any-userclient-access</key> | ||
| <true/> | ||
| <key>com.apple.developer.kernel.increased-memory-limit</key> | ||
| <true/> | ||
| </dict> | ||
| </plist> | ||
| ``` | ||
|
|
||
| ## Step 5: Notarization (Optional but Recommended) | ||
|
|
||
| For distribution, you should notarize the signed kernel extension: | ||
|
|
||
| ```bash | ||
| # Create a ZIP for notarization | ||
| zip -r Innie-signed.zip build/Release/Innie.kext | ||
|
|
||
| # Submit for notarization | ||
| xcrun notarytool submit Innie-signed.zip \ | ||
| --apple-id [email protected] \ | ||
| --team-id YOUR_TEAM_ID \ | ||
| --password "your-app-specific-password" \ | ||
| --wait | ||
|
|
||
| # Staple the notarization | ||
| xcrun stapler staple build/Release/Innie.kext | ||
| ``` | ||
|
|
||
| ## Benefits of Code Signing | ||
|
|
||
| β **No SIP modification required** - kernel extension loads with SIP enabled | ||
| β **Better security** - maintains system integrity protection | ||
| β **Proper distribution** - signed kexts are trusted by macOS | ||
| β **Future compatibility** - Apple increasingly requires signed kernel extensions | ||
|
|
||
| ## Installation with Signed Kext | ||
|
|
||
| With a properly signed kernel extension: | ||
| 1. SIP can remain **enabled** (no Recovery Mode needed) | ||
| 2. Standard installation process works | ||
| 3. No security warnings or blocks | ||
| 4. Professional distribution capability | ||
|
|
||
| ## Cost Considerations | ||
|
|
||
| - **Individual Developer Account**: $99/year - sufficient for personal use | ||
| - **Organization Account**: $99/year - same capabilities for kernel extensions | ||
| - **Enterprise Account**: $299/year - NOT required for kernel extension signing | ||
|
|
||
| ## Verification Commands | ||
|
|
||
| After signing, verify the signature: | ||
| ```bash | ||
| # Check signature validity | ||
| codesign -vvv --deep --strict Innie.kext | ||
|
|
||
| # Check system acceptance | ||
| spctl -a -t exec -vv Innie.kext | ||
|
|
||
| # Verify it will load | ||
| kextutil -n -t Innie.kext | ||
| ``` | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| **Certificate Issues:** | ||
| - Ensure certificates are installed in System keychain | ||
| - Check certificate expiration dates | ||
| - Verify Team ID matches in certificates and code | ||
|
|
||
| **Signing Failures:** | ||
| - Use `--deep` flag for embedded frameworks | ||
| - Include proper entitlements file | ||
| - Check for hardened runtime conflicts | ||
|
|
||
| **Loading Issues:** | ||
| - Verify signature after installation: `codesign -v /Library/Extensions/Innie.kext` | ||
| - Check system logs for signature validation errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>com.apple.developer.driverkit.allow-any-userclient-access</key> | ||
| <true/> | ||
| <key>com.apple.developer.kernel.increased-memory-limit</key> | ||
| <true/> | ||
| </dict> | ||
| </plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule MacKernelSDK
added at
179cbd
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.