| Index: remoting/host/gnubby_auth_handler_posix.cc
|
| diff --git a/remoting/host/gnubby_auth_handler_posix.cc b/remoting/host/gnubby_auth_handler_posix.cc
|
| index f5673d33dd0efe035c92a164048905de36cb5b6f..04afc74347b572c8cb38b2d87fd670527bc83b26 100644
|
| --- a/remoting/host/gnubby_auth_handler_posix.cc
|
| +++ b/remoting/host/gnubby_auth_handler_posix.cc
|
| @@ -53,10 +53,10 @@ class CompareSocket {
|
|
|
| // Socket authentication function that only allows connections from callers with
|
| // the current uid.
|
| -bool MatchUid(uid_t user_id, gid_t) {
|
| - bool allowed = user_id == getuid();
|
| +bool MatchUid(const net::UnixDomainServerSocket::Credentials& credentials) {
|
| + bool allowed = credentials.user_id == getuid();
|
| if (!allowed)
|
| - HOST_LOG << "Refused socket connection from uid " << user_id;
|
| + HOST_LOG << "Refused socket connection from uid " << credentials.user_id;
|
| return allowed;
|
| }
|
|
|
|
|