AuthorizationExecuteWithPrivileges error -60008
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com — F _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This issue was resolved on the Apple-cdsa list, but I want to reflect the solution here to increase its visibility to searches, and in case it may be useful to other subscribers. An application I run from my mpkg package launches a handful of tools that must execute with elevated privileges. I did this with AuthorizationExecuteWithPrivileges. The tools were not executed. AuthorizationExecuteWithPrivileges instead returned with the error code -60008. Error -60008 is errAuthorizationInternal, "An unrecognized internal error occurred." Internal errors are never good news, and I asked Apple-cdsa about it in some despair. Google searches turned up the error only in other, often end-user, contexts. The response was this: AuthorizationExecuteWithPrivileges requires that the environment variable TMPDIR be set to a "valid" directory, presumably meaning both existing and read/writable. Installer.app creates such a directory, and sets TMPDIR, but by the time my application runs, the directory is deleted. AuthorizationExecuteWithPrivileges can't proceed, and reports -60008 (errAuthorizationInternal). This isn't documented anywhere I can find, and my correspondent's assertion that it is a "known issue" begs the question of who knows it. I am annoyed. Documentation bug filed. The workaround is to create a directory for the purpose in /private/ tmp, and set TMPDIR to its path, before launching the helper application. This email sent to site_archiver@lists.apple.com
participants (1)
-
Fritz Anderson