 +#ifndef MAS_BUILD
    xpc_dictionary_get_audit_token(request.xpc, &token);
 +#endif
-   // TODO(rsesek): In the 10.7 SDK, there's audit_token_to_pid().
-   pid_t sender_pid;
-   audit_token_to_au32(token,
-@@ -73,22 +75,26 @@ bool XPCMessageServer::SendReply(IPCMessage reply) {
+   pid_t sender_pid = audit_token_to_pid(token);
+   return sender_pid;
+ }
+@@ -70,22 +72,26 @@ bool XPCMessageServer::SendReply(IPCMessage reply) {
    if (!reply.xpc)
      return false;
  

 }
 
 void XPCMessageServer::RejectMessage(IPCMessage request, int error_code) {
@@ -105,6 +111,7 @@ mach_port_t XPCMessageServer::GetServerPort() const {
 }
 
 void XPCMessageServer::ReceiveMessage() {

     return dictionary;
   }
 
@@ -79,6 +81,7 @@ xpc_object_t PreExecDelegate::CreateBootstrapLookUpMessage() {
 
 kern_return_t PreExecDelegate::DoBootstrapLookUp(mach_port_t* out_port) {
   if (is_yosemite_or_later_) {
