summaryrefslogtreecommitdiff
path: root/base/mac/mach_port_broker.mm
diff options
context:
space:
mode:
authorJay Civelli <jcivelli@google.com>2017-07-26 01:57:21 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-26 01:57:21 +0000
commita29e6994243913703862fdbe17c059150c9ae149 (patch)
treece481b397e704599e05c63cc5856d4d63389026c /base/mac/mach_port_broker.mm
parent11449a22cb2aa56becac551a01c8f61467f433cb (diff)
parent0457669b858da2f5c6ed40d14c2ce8597546d90a (diff)
downloadlibchrome-a29e6994243913703862fdbe17c059150c9ae149.tar.gz
libchrome: Uprev the library to r456626 from Chromium am: 0601274935
am: 0457669b85 Change-Id: I14fee6d53fd60f779d55001a272e88efbca37c48
Diffstat (limited to 'base/mac/mach_port_broker.mm')
-rw-r--r--base/mac/mach_port_broker.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/base/mac/mach_port_broker.mm b/base/mac/mach_port_broker.mm
index bd47017f15..6d9fec5ab6 100644
--- a/base/mac/mach_port_broker.mm
+++ b/base/mac/mach_port_broker.mm
@@ -154,12 +154,7 @@ void MachPortBroker::HandleRequest() {
// Use the kernel audit information to make sure this message is from
// a task that this process spawned. The kernel audit token contains the
// unspoofable pid of the task that sent the message.
- //
- // TODO(rsesek): In the 10.7 SDK, there's audit_token_to_pid().
- pid_t child_pid;
- audit_token_to_au32(msg.trailer.msgh_audit,
- NULL, NULL, NULL, NULL, NULL, &child_pid, NULL, NULL);
-
+ pid_t child_pid = audit_token_to_pid(msg.trailer.msgh_audit);
mach_port_t child_task_port = msg.child_task_port.name;
// Take the lock and update the broker information.