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

Issue 13312005: Don't use $USER for Local Login check (Closed)

Created:
7 years, 8 months ago by Lambros
Modified:
7 years, 8 months ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Don't use $USER for Local Login check Update the PAM Local Login check to use the username from getuid()/getpwuid(). The result of this is much harder for unprivileged users to change than the $USER environment variable. BUG=224958 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191548

Patch Set 1 #

Total comments: 7

Patch Set 2 : address comments, remove CanGetUsername() #

Total comments: 2

Patch Set 3 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -35 lines) Patch
M remoting/base/util.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/base/util.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M remoting/host/pam_authorization_factory_posix.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 4 chunks +4 lines, -32 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Lambros
7 years, 8 months ago (2013-03-29 17:20:22 UTC) #1
Jamie
Can you add something to the CL description explaining why this approach is better?
7 years, 8 months ago (2013-03-29 17:25:24 UTC) #2
Wez
https://codereview.chromium.org/13312005/diff/1/remoting/base/util.h File remoting/base/util.h (right): https://codereview.chromium.org/13312005/diff/1/remoting/base/util.h#newcode96 remoting/base/util.h:96: bool CanGetUsername(); Semantically there's no difference between this not ...
7 years, 8 months ago (2013-03-29 17:27:57 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/13312005/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): https://codereview.chromium.org/13312005/diff/1/remoting/base/util.cc#newcode332 remoting/base/util.cc:332: return ""; please use std::string() instead of ""
7 years, 8 months ago (2013-03-29 17:50:01 UTC) #4
Jamie
https://codereview.chromium.org/13312005/diff/1/remoting/host/pam_authorization_factory_posix.cc File remoting/host/pam_authorization_factory_posix.cc (right): https://codereview.chromium.org/13312005/diff/1/remoting/host/pam_authorization_factory_posix.cc#newcode106 remoting/host/pam_authorization_factory_posix.cc:106: if (username.empty()) On 2013/03/29 17:27:57, Wez wrote: > This ...
7 years, 8 months ago (2013-03-29 18:30:00 UTC) #5
Wez
On 2013/03/29 18:30:00, Jamie wrote: > https://codereview.chromium.org/13312005/diff/1/remoting/host/pam_authorization_factory_posix.cc > File remoting/host/pam_authorization_factory_posix.cc (right): > > https://codereview.chromium.org/13312005/diff/1/remoting/host/pam_authorization_factory_posix.cc#newcode106 > ...
7 years, 8 months ago (2013-03-29 18:43:22 UTC) #6
Lambros
On 2013/03/29 17:25:24, Jamie wrote: > Can you add something to the CL description explaining ...
7 years, 8 months ago (2013-03-29 19:22:08 UTC) #7
Lambros
https://codereview.chromium.org/13312005/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): https://codereview.chromium.org/13312005/diff/1/remoting/base/util.cc#newcode332 remoting/base/util.cc:332: return ""; On 2013/03/29 17:50:01, sergeyu wrote: > please ...
7 years, 8 months ago (2013-03-29 19:30:22 UTC) #8
Wez
lgtm https://codereview.chromium.org/13312005/diff/12001/remoting/base/util.h File remoting/base/util.h (right): https://codereview.chromium.org/13312005/diff/12001/remoting/base/util.h#newcode96 remoting/base/util.h:96: // error. nit: ... on error, or if ...
7 years, 8 months ago (2013-03-29 19:58:56 UTC) #9
Lambros
https://codereview.chromium.org/13312005/diff/12001/remoting/base/util.h File remoting/base/util.h (right): https://codereview.chromium.org/13312005/diff/12001/remoting/base/util.h#newcode96 remoting/base/util.h:96: // error. On 2013/03/29 19:58:56, Wez wrote: > nit: ...
7 years, 8 months ago (2013-03-29 21:25:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/13312005/16001
7 years, 8 months ago (2013-03-29 21:25:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/13312005/16001
7 years, 8 months ago (2013-03-30 17:05:40 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-03-30 20:12:43 UTC) #13
Message was sent while issue was closed.
Change committed as 191548

Powered by Google App Engine
This is Rietveld 408576698