From 86d5d491112ed84f8bb54a1d34bad49cbdb2c6b3 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 4 Jun 2016 17:45:16 -0400 Subject: [PATCH] Comment why AuthorizationExecuteWithPrivileges() is still being used --- Sparkle/SUFileManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUFileManager.m b/Sparkle/SUFileManager.m index 113a8017..e3aa19a5 100644 --- a/Sparkle/SUFileManager.m +++ b/Sparkle/SUFileManager.m @@ -32,6 +32,8 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" + // So ideally we would want to replace this (and Autoupdate.app) with SMJobBless (or maybe SMJobSubmit) & launchd, + // but making that kind of privillege separation change is not trivial and would need to be heavily tested if (AuthorizationExecuteWithPrivileges(authorization, executablePath, options, arguments, NULL) == errAuthorizationSuccess) { #pragma clang diagnostic pop // Wait for every child to finish termination because we won't know which particular child is ours.