EvenBetterAuthorizationSample icon indicating copy to clipboard operation
EvenBetterAuthorizationSample copied to clipboard

Helper Tools Fails To Install Helper

Open malavagile opened this issue 10 years ago • 6 comments

Hello ,

I am working on MAC Application and I am using "EvenBetterAuthorizationSample" code to do some root level stuff.

I have signed the application with my Developer ID and replace dev id everywhere ( 4 Places ) in code with my Developer ID.

The issue is when ever i tried to install the helper tool using SMJobBless is always returns false.

It returns error "CFErrorDomainLaunchd Code=4 "The operation couldn’t be completed. (CFErrorDomainLaunchd error 4.)"

malavagile avatar Apr 17 '15 06:04 malavagile

Its been a while since I played with this, though I did get it working. If my memory serves me, the error 4 means that you have not done all the Developer ID stuff correctly.

I can have a look at my work example. Maybe you can tell me where you have changed the DevID and I will see if it matches

brenwell avatar Apr 17 '15 10:04 brenwell

I have change at 4 Places listed as below. 1 ) XPCService-Info.plist -> SMPrivilegedExecutables -> Helper Tool 2 ) App-Info.plist -> SMPrivilegedExecutables -> Helper Tool 3 ) HelperTool-Info.plist -> SMAuthorizedClients -> App 4 ) HelperTool-Info.plist -> SMAuthorizedClients -> XPC Service

And selected Developer ID as signing in General Tab for Application.

Can match this places with your working code.

malavagile avatar Apr 17 '15 11:04 malavagile

and you ran this Python tool command?

brenwell avatar Apr 17 '15 11:04 brenwell

Ironically, my app is showing the same error, but it is actually granting privilege and I can do privileged tasks

brenwell avatar Apr 17 '15 11:04 brenwell

http://www.stevestreeting.com/2011/11/25/escalating-privileges-on-mac-os-x-securely-and-without-using-deprecated-methods/

0wnrepo avatar Sep 11 '17 12:09 0wnrepo

Does one have to have a Developer ID certificate to make this install or can it be done with a free Mac Developer certificate?

analyticd avatar Sep 27 '18 19:09 analyticd