Skip to content
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

10.10 compatible ? #4

Closed
johnno1962 opened this issue Jun 15, 2016 · 4 comments
Closed

10.10 compatible ? #4

johnno1962 opened this issue Jun 15, 2016 · 4 comments

Comments

@johnno1962
Copy link

johnno1962 commented Jun 15, 2016

Hi, I’ve just tried running this project under 10.10 and I get the following error:

2016-06-15 17:08:24.041 MachInjectSample[2454:31915] Injecting Finder (317) with /Users/johnholdsworth/Library/Developer/Xcode/DerivedData/MachInjectSample-geshmsepcxcvcedqvwrajxmdtfja/Build/Products/Debug/MachInjectSample.app/Contents/Resources/Payload.bundle
2016-06-15 17:08:24.063 MachInjectSample[2454:31915] an error occurred while injecting Finder: (os/kern) failure (error code: 5)
2016-06-15 17:08:24.063 MachInjectSample[2454:31915] Couldn't inject Finder (domain: com.erwanb.MachInjectSample.ErrorDomain code: 3)

Console logs:
15/06/2016 17:08:24.042 MachInjectSample[2454]: Injecting Finder (317) with /Users/johnholdsworth/Library/Developer/Xcode/DerivedData/MachInjectSample-geshmsepcxcvcedqvwrajxmdtfja/Build/Products/Debug/MachInjectSample.app/Contents/Resources/Payload.bundle
15/06/2016 17:08:24.063 MachInjectSample[2454]: an error occurred while injecting Finder: (os/kern) failure (error code: 5)
15/06/2016 17:08:24.063 MachInjectSample[2454]: Couldn't inject Finder (domain: com.erwanb.MachInjectSample.ErrorDomain code: 3)
15/06/2016 17:08:24.128 sandboxd[150]: ([2457]) com.erwanb.MachI(2457) System Policy: deny mach-priv-task-port

Is this expected with SIP and the like? Everything was signed with a valid Apple dev id.

I cloned your project and then copied in mach_inject/{mach_inject,mach_inject_bundle,mach_inject_bundle_stub} from https://github.com/rentzsch/mach_inject, then tried: git clone https://github.com/erwanb/MachInjectSample --recurse-submodules

@erwanb
Copy link
Owner

erwanb commented Jun 15, 2016

This project has been fixed to work under 10.10, see this issue.
You can find it here.

@erwanb erwanb closed this as completed Jun 15, 2016
@johnno1962
Copy link
Author

Thanks for the prompt reply. Will the project work under 10.11 do you know? I’ve not had any luck

@erwanb
Copy link
Owner

erwanb commented Jun 15, 2016

I don't follow the subject closely, but it seems Apple with SIP is determined to crack down on code injection.
Check this issue for a possible solution.

@johnno1962
Copy link
Author

Yes, it seems the only answer is to turn SIP off. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants