• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can a privileged launchd daemon binary be linked against private framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can a privileged launchd daemon binary be linked against private framework?


  • Subject: Can a privileged launchd daemon binary be linked against private framework?
  • From: Motti Shneor <email@hidden>
  • Date: Tue, 12 Jan 2016 18:39:18 +0200

Hi.

I’m developing that privileged daemon, mostly a C++ unix-style thing, that will be started from a System-preferences panel, and kept alive by launchd.

The SMJobBless() API will copy my daemon to the /Library/PrivilegedHelperTools/ and will run it from there.

My daemon must link against some 3rd-party private framework that must reside on disk for license reasons. I can’t install the framework  in normal search-paths /Library/Frameworks or ~/Library/Frameworks, again for licensing reasons. The framework needs to be private.

What I had in mind, is to have my daemon packaged as a normal OS-X code-bundle, with private framework embedded in its bundle  (along with other resources).

However — If I understand right, the binary of the daemon, copied to /Library/PrivilegedHelperTools will not be able to find its framework in runtime - or maybe it can?

Is there some combination of @runpath @loder_path and other link-time magic I could use to achieve that?

Motti Shneor.



_______________________________________________

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


  • Prev by Date: Weird Message from NSZombies
  • Next by Date: Re: Weird Message from NSZombies
  • Previous by thread: Re: Weird Message from NSZombies
  • Next by thread: Re: Settings.bundle settings disappear while running
  • Index(es):
    • Date
    • Thread