DescriptionForce encryption migration if the device supports ARC.
This CL includes following changes:
* Add |is_forcing_dircrypto| to UserContext to pass the configuration
from ExistingUserController to CryptohomeAuthenticator.
The flag affects MountParameter for MountEx API.
* If a regular user signs in and ARC is available, ExistingUserController
flips the flag to ensure that the cryptohome is encrypted in
dircrypto.
* Add a user-facing flag to enable the migration, since the backend of
the migration procedure is not completely ready yet.
* If a user choose "SKIP" in the migration screen, the screen handler
let the user sign in by using previously-used UserContext and LoginPerformer,
and dripping the |is_forcing_dircrypto| flag.
BUG=706017
TEST=manually tested following cases on samus with ARC support.
1) Enable the flag in owner profile, create a cryptohome in ecryptfs, and sign in to the new profile. It showed migration screen.
2) Clicking "SKIP" on the screen shows the user's desktop.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2798023005
Cr-Commit-Position: refs/heads/master@{#462773}
Committed: https://chromium.googlesource.com/chromium/src/+/1b5ebe9539b3bd7e074075a2de5a355944ba07e8
Patch Set 1 #
Total comments: 10
Patch Set 2 : Pass a callback instead of LoginPerformer to perform login using previously-used LoginPerformer. #Patch Set 3 : Add enable-encryption-migration to histgrams.xml. #
Total comments: 2
Patch Set 4 : Bind |auth_mode| #Messages
Total messages: 27 (18 generated)
|