Don\'t try to fixate CE keys for ephemeral users

am: 25a713873c

Change-Id: I7ecf1fcc6763943c124a93c433f49274579851ae
This commit is contained in:
Paul Crowley 2016-07-26 16:32:36 +00:00 committed by android-build-merger
commit 048d4c8518

View file

@ -614,6 +614,7 @@ bool e4crypt_add_user_key_auth(userid_t user_id, int serial, const char* token_h
bool e4crypt_fixate_newest_user_key_auth(userid_t user_id) {
LOG(DEBUG) << "e4crypt_fixate_newest_user_key_auth " << user_id;
if (!e4crypt_is_native()) return true;
if (s_ephemeral_users.count(user_id) != 0) return true;
auto const directory_path = get_ce_key_directory_path(user_id);
auto const paths = get_ce_key_paths(directory_path);
if (paths.empty()) {