summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2015-10-23 00:59:31 +0000
committerJason Molenda <jmolenda@apple.com>2015-10-23 00:59:31 +0000
commita96a8c4c08a3c48db1790d262bae1948e79baa35 (patch)
tree26aed5a91a57251648d3ad2e7d71d0f54c047e79
parentbf6ee32ca5c59bd44f5dd06e8f69ffaca992072c (diff)
downloadbcm5719-llvm-a96a8c4c08a3c48db1790d262bae1948e79baa35.tar.gz
bcm5719-llvm-a96a8c4c08a3c48db1790d262bae1948e79baa35.zip
Fix one more place where we were using the old
name of the xpc service. <rdar://problem/23223624> llvm-svn: 251086
-rw-r--r--lldb/source/Host/macosx/Host.mm10
1 files changed, 3 insertions, 7 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm
index 6c3d2617380..c70769d8292 100644
--- a/lldb/source/Host/macosx/Host.mm
+++ b/lldb/source/Host/macosx/Host.mm
@@ -1117,11 +1117,7 @@ LaunchProcessXPC(const char *exe_path, ProcessLaunchInfo &launch_info, lldb::pid
const char *xpc_service = nil;
bool send_auth = false;
AuthorizationExternalForm extForm;
- if ((requested_uid == UINT32_MAX) || (requested_uid == HostInfo::GetEffectiveUserID()))
- {
- xpc_service = "com.apple.lldb.launcherXPCService";
- }
- else if (requested_uid == 0)
+ if (requested_uid == 0)
{
if (AuthorizationMakeExternalForm(authorizationRef, &extForm) == errAuthorizationSuccess)
{
@@ -1137,12 +1133,12 @@ LaunchProcessXPC(const char *exe_path, ProcessLaunchInfo &launch_info, lldb::pid
}
return error;
}
- xpc_service = "com.apple.lldb.launcherRootXPCService";
+ xpc_service = LaunchUsingXPCRightName;
}
else
{
error.SetError(4, eErrorTypeGeneric);
- error.SetErrorStringWithFormat("Launching via XPC is only currently available for either the login user or root.");
+ error.SetErrorStringWithFormat("Launching via XPC is only currently available for root.");
if (log)
{
error.PutToLog(log, "%s", error.AsCString());
OpenPOWER on IntegriCloud