site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Aug 20, 2008, at 7:26 AM, Andrew White wrote: Scenario: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I have a preference pane that is responsible for controlling how a couple of different services on the system run. The services use launchd to control them (and start them at boot time). The preference pane will normally be installed in /Library/ PreferencePanes. The daemon scripts will normally be installed in /Library/ LaunchDaemons. Here's the question - where is the right place to install the posix tools / applications that those daemons run. I'd thought to put them in the PreferencePane bundle, but that means that the launchd scripts need to be able to find them at boot, and I'm not sure that I want to assume where the preference pane bundle is installed (in case the user moves it?). Where is the correct place? And how do I make it easy for the user to uninstall my app - what happens to the launchd scripts if my apps are thrown into the trash? Since these apps might (will?) run as root, I certainly don't want the scripts to pull some random app from the user's path. Similarly, if I want to put the apps in a chroot jail, where do I put the root of this jail? As you wrote, there are permission concerns here. /Library/ PreferencePanes is root:admin. So it's not the best place to put components that can be launched by a LaunchDaemons script. A solution could be to put things in /Library/StartupItems without providing a StartupParameters.plist script. It's better than /L/ PreferencePanes since it's root:wheel. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre