Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: remoting/host/gnubby_auth_handler_posix.cc

Issue 382143005: Supports DevTools socket access authentication based on Android permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..24cd2a932a39e71bb20cd4dae8ebb8c00c4df10d 100644
--- a/remoting/host/gnubby_auth_handler_posix.cc
+++ b/remoting/host/gnubby_auth_handler_posix.cc
@@ -53,7 +53,7 @@ class CompareSocket {
// Socket authentication function that only allows connections from callers with
// the current uid.
-bool MatchUid(uid_t user_id, gid_t) {
+bool MatchUid(pid_t, uid_t user_id, gid_t) {
bool allowed = user_id == getuid();
if (!allowed)
HOST_LOG << "Refused socket connection from uid " << user_id;

Powered by Google App Engine
This is Rietveld 408576698