Comment why AuthorizationExecuteWithPrivileges() is still being used

This commit is contained in:
Zorg committed 2016-06-04 18:02:21 -04:00
1 parent b2cb1bd531
commit 86d5d49111
1 file changed
+2
+2
View File
@@ -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.