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

Issue 2323153002: Add PAM session wrapper (Closed)

Created:
4 years, 3 months ago by rkjnsn
Modified:
4 years ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PAM session wrapper Adds a wrapper to launch me2me script in a proper PAM session. BUG=616962 Committed: https://crrev.com/cbef66778a13c926d0518b269928a288777cbbfc Cr-Commit-Position: refs/heads/master@{#435044}

Patch Set 1 : Add PAM session wrapper #

Total comments: 63

Patch Set 2 : Switch to using LaunchProcess and logging #

Patch Set 3 : Option A: Use wrapper for boot only #

Total comments: 33

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Fix unused result error #

Total comments: 5

Patch Set 7 : Address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -62 lines) Patch
M remoting/host/installer/linux/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/installer/linux/Makefile View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M remoting/host/installer/linux/debian/chrome-remote-desktop.init View 1 2 2 chunks +19 lines, -19 lines 0 comments Download
M remoting/host/installer/linux/debian/chrome-remote-desktop.pam View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/host/linux/BUILD.gn View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M remoting/host/linux/linux_me2me_host.py View 1 2 4 chunks +54 lines, -43 lines 0 comments Download
A remoting/host/linux/remoting_user_session.cc View 1 2 3 4 5 6 1 chunk +487 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (25 generated)
rkjnsn
Here's my first go at the PAM session wrapper. I've done some testing with it, ...
4 years, 3 months ago (2016-09-08 23:39:37 UTC) #3
Jamie
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn File remoting/host/BUILD.gn (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn#newcode1364 remoting/host/BUILD.gn:1364: executable("remoting_pam_session") { I think it would be better to ...
4 years, 3 months ago (2016-09-09 18:27:12 UTC) #4
rkjnsn
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn File remoting/host/BUILD.gn (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn#newcode1364 remoting/host/BUILD.gn:1364: executable("remoting_pam_session") { On 2016/09/09 18:27:11, Jamie wrote: > I ...
4 years, 3 months ago (2016-09-09 21:24:31 UTC) #5
Lambros
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode61 remoting/host/linux/remoting_pam_session.cc:61: if (!((character >= '0' && character <= '9') || ...
4 years, 3 months ago (2016-09-09 22:48:58 UTC) #6
rkjnsn
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode61 remoting/host/linux/remoting_pam_session.cc:61: if (!((character >= '0' && character <= '9') || ...
4 years, 3 months ago (2016-09-10 00:06:38 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode49 remoting/host/linux/remoting_pam_session.cc:49: " --me2me-script=<script> - Location of the me2me python script ...
4 years, 3 months ago (2016-09-10 00:23:17 UTC) #9
rkjnsn
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode60 remoting/host/linux/remoting_pam_session.cc:60: // so don't escape any alphanumerics. (Also cuts down ...
4 years, 3 months ago (2016-09-10 00:40:56 UTC) #10
rkjnsn
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode49 remoting/host/linux/remoting_pam_session.cc:49: " --me2me-script=<script> - Location of the me2me python script ...
4 years, 3 months ago (2016-09-12 19:04:28 UTC) #11
rkjnsn
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc File remoting/host/linux/remoting_pam_session.cc (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/linux/remoting_pam_session.cc#newcode60 remoting/host/linux/remoting_pam_session.cc:60: // so don't escape any alphanumerics. (Also cuts down ...
4 years, 3 months ago (2016-09-12 19:33:06 UTC) #12
Jamie
https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn File remoting/host/BUILD.gn (right): https://codereview.chromium.org/2323153002/diff/20001/remoting/host/BUILD.gn#newcode1364 remoting/host/BUILD.gn:1364: executable("remoting_pam_session") { On 2016/09/09 21:24:30, rkjnsn wrote: > On ...
4 years, 3 months ago (2016-09-12 20:36:52 UTC) #13
rkjnsn
Okay, after getting a change I needed to LaunchProcess committed, I have now migrated this ...
4 years, 2 months ago (2016-10-12 22:17:51 UTC) #14
rkjnsn
Okay, after getting a change I needed to LaunchProcess committed, I have now migrated this ...
4 years, 2 months ago (2016-10-12 22:17:54 UTC) #15
Lambros
This looks a lot nicer! Basically LG, though I haven't gone over it in detail.
4 years, 2 months ago (2016-10-14 01:20:03 UTC) #16
rkjnsn
Here's the integrated code for option A, where we only use the wrapper at boot ...
4 years, 1 month ago (2016-11-15 22:52:57 UTC) #17
rkjnsn
https://codereview.chromium.org/2323153002/diff/60001/remoting/host/pam_authorization_factory_posix.cc File remoting/host/pam_authorization_factory_posix.cc (right): https://codereview.chromium.org/2323153002/diff/60001/remoting/host/pam_authorization_factory_posix.cc#newcode125 remoting/host/pam_authorization_factory_posix.cc:125: HOST_LOG << "pam_start: " << pam_strerror(handle, result); Oops. These ...
4 years, 1 month ago (2016-11-15 22:56:49 UTC) #18
Jamie
LGTM with nits, but given the size of this CL, how critical it is to ...
4 years, 1 month ago (2016-11-16 01:27:28 UTC) #19
Lambros
lgtm https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/linux_me2me_host.py#newcode414 remoting/host/linux/linux_me2me_host.py:414: if "LD_LIBRARY_PATH" in self.child_env: Appreciate the bug-fix :) ...
4 years, 1 month ago (2016-11-17 21:19:35 UTC) #20
rkjnsn
See various replies below. https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/linux_me2me_host.py File remoting/host/linux/linux_me2me_host.py (right): https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/linux_me2me_host.py#newcode383 remoting/host/linux/linux_me2me_host.py:383: # PAM-authenticated session. On 2016/11/16 ...
4 years, 1 month ago (2016-11-18 22:46:49 UTC) #21
Jamie
https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/remoting_user_session.cc File remoting/host/linux/remoting_user_session.cc (right): https://codereview.chromium.org/2323153002/diff/60001/remoting/host/linux/remoting_user_session.cc#newcode269 remoting/host/linux/remoting_user_session.cc:269: On 2016/11/18 22:46:49, rkjnsn wrote: > On 2016/11/16 01:27:27, ...
4 years, 1 month ago (2016-11-18 22:56:08 UTC) #22
rkjnsn
Addressed most of the feedback and make a couple tweaks. https://codereview.chromium.org/2323153002/diff/80001/remoting/host/linux/remoting_user_session.cc File remoting/host/linux/remoting_user_session.cc (right): https://codereview.chromium.org/2323153002/diff/80001/remoting/host/linux/remoting_user_session.cc#newcode21 ...
4 years, 1 month ago (2016-11-22 19:57:03 UTC) #23
rkjnsn
Looks like it needs a rebase.
4 years, 1 month ago (2016-11-22 20:09:42 UTC) #28
rkjnsn
On 2016/11/22 20:09:42, rkjnsn wrote: > Looks like it needs a rebase. And done, but ...
4 years, 1 month ago (2016-11-22 21:49:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323153002/100001
4 years ago (2016-11-23 15:37:35 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-11-23 15:43:23 UTC) #38
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ac6cd2ac8ea912ee4dc0c229f79b04874aee9cc3 Cr-Commit-Position: refs/heads/master@{#434172}
4 years ago (2016-11-23 15:47:03 UTC) #40
Ɓukasz Anforowicz
A revert of this CL (patchset #5 id:100001) has been created in https://codereview.chromium.org/2527713002/ by lukasza@chromium.org. ...
4 years ago (2016-11-23 19:13:05 UTC) #41
rkjnsn
(Hopefully) fix unused result error. https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc File remoting/host/linux/remoting_user_session.cc (right): https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc#newcode379 remoting/host/linux/remoting_user_session.cc:379: ignore_result(pam_handle.SetCredentials(PAM_DELETE_CRED)); ignore_result isn't needed ...
4 years ago (2016-11-23 20:40:36 UTC) #43
Jamie
LGTM when my comments are addressed. https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc File remoting/host/linux/remoting_user_session.cc (right): https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc#newcode319 remoting/host/linux/remoting_user_session.cc:319: PLOG_IF(WARNING, fchown(STDOUT_FILENO, pwinfo->pw_uid, ...
4 years ago (2016-11-23 21:00:34 UTC) #44
rkjnsn
https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc File remoting/host/linux/remoting_user_session.cc (right): https://codereview.chromium.org/2323153002/diff/120001/remoting/host/linux/remoting_user_session.cc#newcode319 remoting/host/linux/remoting_user_session.cc:319: PLOG_IF(WARNING, fchown(STDOUT_FILENO, pwinfo->pw_uid, pwinfo->pw_gid) != 0) On 2016/11/23 21:00:34, ...
4 years ago (2016-11-23 21:06:34 UTC) #45
Lambros
lgtm
4 years ago (2016-11-23 21:55:10 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323153002/140001
4 years ago (2016-11-23 21:58:48 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_compile_dbg_ng on ...
4 years ago (2016-11-24 00:01:32 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323153002/140001
4 years ago (2016-11-24 00:19:56 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-24 02:21:43 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323153002/140001
4 years ago (2016-11-29 17:47:29 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years ago (2016-11-29 18:51:15 UTC) #60
commit-bot: I haz the power
4 years ago (2016-11-29 18:55:14 UTC) #62
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cbef66778a13c926d0518b269928a288777cbbfc
Cr-Commit-Position: refs/heads/master@{#435044}

Powered by Google App Engine
This is Rietveld 408576698