I've done quite a bit of reading on the topic of running particular code with elevated rights.
Apple recommends using SMJobBless (
link), but it's pretty poorly documented and whatever examples I can find rely solely intended for use with XCode. I've been struggling with this, on and off, for quite a while (see also
my previous post from 2 years ago).
I'm looking for some insight and assistance to get this done with Lazarus.
I'd be even willing to pay for a good explanation and working example.
There are at least 2 applications why I'd like to use this (none of these are commercial or intended for the App Store);
1) I have created a tool that uses "dd" to read/write disk images, which requires sudo level execution,
2) I'm creating a tool to make signing apps easier, which needs elevated rights for using codesign.
Using tricks like RunCommand, TProcess etc. works for "dd", but not for "codesign" (security rejects it, even when using sudo).
In hopes to do it correctly, I assume the helpertool route is the way to go.
As I understand, I need to create basically 2 applications. The main application and the helpertool.
Both need to be signed, have a specific plist, etc etc. possibly some complex linking.
But that's as far as I have gotten ...
Is anyone capable and willing to help with this?
Again: I am willing to pay for it.