| Index: net/socket/unix_domain_listen_socket_posix.cc
|
| diff --git a/net/socket/unix_domain_listen_socket_posix.cc b/net/socket/unix_domain_listen_socket_posix.cc
|
| index 7bab4ffcb7fe0c9df40cbfc6869969f5e61a4954..dc7c19c9663863a1f9fdd43bdfaed1be3a49bfbf 100644
|
| --- a/net/socket/unix_domain_listen_socket_posix.cc
|
| +++ b/net/socket/unix_domain_listen_socket_posix.cc
|
| @@ -113,10 +113,9 @@ void UnixDomainListenSocket::Accept() {
|
| SocketDescriptor conn = StreamListenSocket::AcceptSocket();
|
| if (conn == kInvalidSocket)
|
| return;
|
| - uid_t user_id;
|
| - gid_t group_id;
|
| - if (!UnixDomainServerSocket::GetPeerIds(conn, &user_id, &group_id) ||
|
| - !auth_callback_.Run(user_id, group_id)) {
|
| + UnixDomainServerSocket::Credentials credentials;
|
| + if (!UnixDomainServerSocket::GetPeerCredentials(conn, &credentials) ||
|
| + !auth_callback_.Run(credentials)) {
|
| if (IGNORE_EINTR(close(conn)) < 0)
|
| LOG(ERROR) << "close() error";
|
| return;
|
|
|