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

Unified Diff: remoting/host/pam_authorization_factory_posix.cc

Issue 2323153002: Add PAM session wrapper (Closed)
Patch Set: Option A: Use wrapper for boot only Created 4 years, 1 month 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/pam_authorization_factory_posix.cc
diff --git a/remoting/host/pam_authorization_factory_posix.cc b/remoting/host/pam_authorization_factory_posix.cc
index 35da4cd38cc804bdd8e588c394dfcbd224cecb6d..30233bd38834942d9a9f4359bdf1a5ef5a0aa5e3 100644
--- a/remoting/host/pam_authorization_factory_posix.cc
+++ b/remoting/host/pam_authorization_factory_posix.cc
@@ -122,8 +122,10 @@ bool PamAuthorizer::IsLocalLoginAllowed() {
pam_handle_t* handle = nullptr;
int result = pam_start("chrome-remote-desktop", username.c_str(),
&conv, &handle);
+ HOST_LOG << "pam_start: " << pam_strerror(handle, result);
rkjnsn 2016/11/15 22:56:48 Oops. These were for debugging. They'll be removed
if (result == PAM_SUCCESS) {
result = pam_acct_mgmt(handle, 0);
+ HOST_LOG << "pam_acct_mgmt: " << pam_strerror(handle, result);
}
pam_end(handle, result);
« remoting/host/linux/remoting_user_session.cc ('K') | « remoting/host/linux/remoting_user_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698