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

Issue 171423009: Use MountGuest to mount cryptohome for a demo user. (Closed)

Created:
6 years, 10 months ago by rkc
Modified:
6 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Use MountGuest to mount cryptohome for a demo user. Doing a regular user mount with the ephemeral flag doesn't work very well since cryptohome expects the machine to either have an owner or be enterprise owned for normal user mounts, even if ephemeral. This CL switches us to using the mount guest path in cryptohome. This involves changing the path followed by LoginUtils::PrepareProfile since there are multiple things that it does that we either do not want, or cannot have, for a guest mount. Additionally, we cannot MountGuest with our normal demo mode user_id since Cryptohome (and a few other cros components) expect the username for a guest mount to be $guest. To get around this, we mount crytohome with $guest as the username, but once the mount is done, we switch the username back to the demo user name for the rest of the processsing being done in Chrome. R=dpolukhin@chromium.org, xiyuan@chromium.org BUG=345038 TEST=Tested on a device on OOBE with the TPM cleared. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252193

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -21 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 5 chunks +61 lines, -7 lines 2 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 1 1 chunk +14 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
rkc
6 years, 10 months ago (2014-02-19 23:21:11 UTC) #1
Dmitry Polukhin
lgtm https://codereview.chromium.org/171423009/diff/40001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc File chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc (right): https://codereview.chromium.org/171423009/diff/40001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc#newcode154 chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc:154: if (context.username == UserManager::kGuestUserName) Please add comment why ...
6 years, 10 months ago (2014-02-20 00:02:47 UTC) #2
rkc
https://codereview.chromium.org/171423009/diff/40001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc File chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc (right): https://codereview.chromium.org/171423009/diff/40001/chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc#newcode154 chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc:154: if (context.username == UserManager::kGuestUserName) On 2014/02/20 00:02:48, Dmitry Polukhin ...
6 years, 10 months ago (2014-02-20 00:05:38 UTC) #3
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 00:05:54 UTC) #4
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 01:20:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/171423009/70001
6 years, 10 months ago (2014-02-20 01:20:56 UTC) #6
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 01:20:56 UTC) #7
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 04:49:33 UTC) #8
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 05:55:53 UTC) #9
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 05:56:27 UTC) #10
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 10 months ago (2014-02-20 05:58:40 UTC) #11
rkc
Committed patchset #3 manually as r252193 (presubmit successful).
6 years, 10 months ago (2014-02-20 08:57:16 UTC) #12
Nikita (slow)
I'm currently doing refactoring in this area and was actually unifying these two paths. https://codereview.chromium.org/171423009/diff/70001/chrome/browser/chromeos/login/login_utils.cc ...
6 years, 6 months ago (2014-06-10 16:48:44 UTC) #13
Nikita (slow)
On 2014/06/10 16:48:44, Nikita Kostylev wrote: > I'm currently doing refactoring in this area and ...
6 years, 6 months ago (2014-06-10 17:47:48 UTC) #14
Nikita (slow)
6 years, 6 months ago (2014-06-11 09:44:40 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/171423009/diff/70001/chrome/browser/chromeos/...
File chrome/browser/chromeos/login/login_utils.cc (right):

https://codereview.chromium.org/171423009/diff/70001/chrome/browser/chromeos/...
chrome/browser/chromeos/login/login_utils.cc:430:
ProfileManager::GetGuestProfilePath(),
On 2014/06/10 16:48:43, Nikita Kostylev wrote:
> Are you sure that this is actually working?
> 
> All other parts of Chrome OS are not using Guest Profile.
> 
> In this case profile is supposed to be at /home/chronos/Guest Profile but
> Cryptohome doesn't know about that and mounts tmps to
> 
> /home/chronos/u-[$guest hash]
> (or legacy one /home/chronos/user).

So I've actually found that this issue was fixed right away in
https://codereview.chromium.org/205713002

Sorry for the noise.

Powered by Google App Engine
This is Rietveld 408576698