Home
last modified time | relevance | path

Searched refs:key_loc (Results 1 – 6 of 6) sorted by relevance

/system/vold/
Dcryptfs.cpp442 static void get_crypt_info(std::string* key_loc, std::string* real_blk_device) { in get_crypt_info() argument
447 if (key_loc != nullptr) { in get_crypt_info()
448 *key_loc = entry.key_loc; in get_crypt_info()
462 char key_loc[PROPERTY_VALUE_MAX]; in get_crypt_ftr_info() local
467 std::string key_loc; in get_crypt_ftr_info() local
469 get_crypt_info(&key_loc, &real_blkdev); in get_crypt_ftr_info()
471 if (key_loc == KEY_IN_FOOTER) { in get_crypt_ftr_info()
484 strlcpy(cached_metadata_fname, key_loc.c_str(), sizeof(cached_metadata_fname)); in get_crypt_ftr_info()
1723 std::string key_loc; in do_crypto_complete() local
1724 get_crypt_info(&key_loc, nullptr); in do_crypto_complete()
[all …]
/system/core/fs_mgr/include_fstab/fstab/
Dfstab.h39 std::string key_loc; member
/system/core/fs_mgr/
Dfs_mgr_roots.cpp123 bool crypt_footer = rec->is_encryptable() && rec->key_loc == "footer"; in EnsurePathMounted()
Dfs_mgr_fstab.cpp221 entry->key_loc = arg; in ParseFsMgrFlags()
272 entry->key_loc = arg; in ParseFsMgrFlags()
279 entry->key_loc = arg; in ParseFsMgrFlags()
Dfs_mgr.cpp1237 if (current_entry.is_encryptable() && current_entry.key_loc != KEY_IN_FOOTER) { in fs_mgr_mount_all()
1239 open(current_entry.key_loc.c_str(), O_WRONLY | O_CLOEXEC))); in fs_mgr_mount_all()
1241 LINFO << __FUNCTION__ << "(): also wipe " << current_entry.key_loc; in fs_mgr_mount_all()
1244 PERROR << __FUNCTION__ << "(): " << current_entry.key_loc << " wouldn't open"; in fs_mgr_mount_all()
1246 } else if (current_entry.is_encryptable() && current_entry.key_loc == KEY_IN_FOOTER) { in fs_mgr_mount_all()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp414 EXPECT_EQ("", entry->key_loc); in TEST()
444 EXPECT_EQ("", entry->key_loc); in TEST()
473 EXPECT_EQ("", entry->key_loc); in TEST()
494 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()
685 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()
708 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()