CFPreferences and non-root daemon
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcbTYcLKAYWTOD9VEdu63QANk21umg== Thread-topic: CFPreferences and non-root daemon User-agent: Microsoft-Entourage/11.2.5.060620 I'm moving root-requiring code out of a launchd-started daemon into a couple small, focused executables. It's going well except I've hit a snag with CFPreferences. I'm specifying kCFPreferencesCurrentApplication, KCFPreferencesAnyUser, KCFPreferencesCurrentHost and CFPreferences works fine if I run the daemon as root. But if I run it as nobody, CFPreferencesSynchronize consistently fails. If I manually change the owner of the bundle.id.plist file that CFPreferences creates to nobody, it works okay. None of this is a particular surprise, but I'm wondering what to do about it. How should a non-root daemon store its preferences? The daemon can change its settings during execution, so a static config file is not an option. Is there a good way to get CFPreferences to work? -Marc _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Marc Epard