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

Issue 2651343002: CrOS: Make IsCryptohomeMounted compatible with ext4-encryption backend. (Closed)

Created:
3 years, 11 months ago by kinaba
Modified:
3 years, 10 months ago
Reviewers:
achuithb
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org, hashimoto
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

CrOS: Make IsCryptohomeMounted compatible with ext4-encryption backend. The previous implementation assumed that the mount source for the home directory is /home/.shadow/something. It holds for ecryptfs-based cryptohome, but not for ext4-encryption backend, where the home directory becomes merely a bind mount to the encrypted directory. Guest fs is not affected. BUG=chromium:684914 TEST=./telemetry/bin/run_tests CrOSInterfaceTest --browser=cros-chrome TEST=./telemetry/bin/run_tests CrOSCryptohomeTest --browser=cros-chrome Review-Url: https://codereview.chromium.org/2651343002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/a448b4b8357a55bf68bce864c8b350bacf0c1081

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 8

Patch Set 3 : Made the test more descriptive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -8 lines) Patch
M telemetry/telemetry/core/cros_interface.py View 2 chunks +15 lines, -8 lines 0 comments Download
M telemetry/telemetry/core/cros_interface_unittest.py View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/cros_unittest.py View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
kinaba
PTAL: achuith. FYI: hashimoto.
3 years, 11 months ago (2017-01-26 08:03:15 UTC) #4
achuithb
Could you add a unit test for this in cros_interface_unittest.py?
3 years, 11 months ago (2017-01-27 01:24:09 UTC) #7
kinaba
done
3 years, 10 months ago (2017-01-30 02:29:27 UTC) #8
kinaba
friendly ping.
3 years, 10 months ago (2017-02-01 00:40:32 UTC) #9
achuithb
https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py File telemetry/telemetry/core/cros_interface_unittest.py (right): https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py#newcode220 telemetry/telemetry/core/cros_interface_unittest.py:220: def testIsCryptohomeMounted(self, mock_run_cmd): Sorry I don't understand this test ...
3 years, 10 months ago (2017-02-01 03:05:05 UTC) #14
kinaba
https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py File telemetry/telemetry/core/cros_interface_unittest.py (right): https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py#newcode220 telemetry/telemetry/core/cros_interface_unittest.py:220: def testIsCryptohomeMounted(self, mock_run_cmd): On 2017/02/01 03:05:04, achuithb wrote: > ...
3 years, 10 months ago (2017-02-01 03:32:52 UTC) #15
achuithb
https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py File telemetry/telemetry/core/cros_interface_unittest.py (right): https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py#newcode220 telemetry/telemetry/core/cros_interface_unittest.py:220: def testIsCryptohomeMounted(self, mock_run_cmd): On 2017/02/01 03:32:52, kinaba wrote: > ...
3 years, 10 months ago (2017-02-02 00:21:46 UTC) #16
achuithb
> > Let me know if you know better way. > Another option might be ...
3 years, 10 months ago (2017-02-02 00:22:11 UTC) #17
kinaba
https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py File telemetry/telemetry/core/cros_interface_unittest.py (right): https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py#newcode220 telemetry/telemetry/core/cros_interface_unittest.py:220: def testIsCryptohomeMounted(self, mock_run_cmd): The mock is emulating the device ...
3 years, 10 months ago (2017-02-02 01:22:56 UTC) #18
achuithb
https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py File telemetry/telemetry/core/cros_interface_unittest.py (right): https://codereview.chromium.org/2651343002/diff/20001/telemetry/telemetry/core/cros_interface_unittest.py#newcode220 telemetry/telemetry/core/cros_interface_unittest.py:220: def testIsCryptohomeMounted(self, mock_run_cmd): Let's at least change guest@gmail.com to ...
3 years, 10 months ago (2017-02-03 00:59:46 UTC) #19
kinaba
Added comments to the test, and also added a check for this fundtion or an ...
3 years, 10 months ago (2017-02-03 02:51:48 UTC) #22
achuithb
lgtm
3 years, 10 months ago (2017-02-06 19:50:40 UTC) #23
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/2651343002/40001
3 years, 10 months ago (2017-02-06 23:13:27 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 23:34:25 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698