Re: Debugging a privileged helper
Re: Debugging a privileged helper
- Subject: Re: Debugging a privileged helper
- From: John Brownie <email@hidden>
- Date: Fri, 27 Jan 2017 13:18:27 +0200
Stephane Sudre wrote:
Have you tried removing the Program entry?
That's produced, as far as I can tell, by the SMJobBless process. The
file I pass is:
<?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>Label</key>
<string>org.sil.KLMHelper</string>
<key>MachServices</key>
<dict>
<key>org.sil.KLMHelper</key>
<true/>
</dict>
</dict>
</plist>
It's added to the binary with the linker flag -sectcreate __TEXT
__launchd_plist (path to the file). The launchd plist is exactly
analogous to the tool that is already working, just the identifiers changed.
--
John Brownie
In Finland on furlough from SIL Papua New Guinea
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden