Home
last modified time | relevance | path

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

/system/vold/
Dcryptfs.cpp596 static void get_crypt_info(std::string* key_loc, std::string* real_blk_device) { in get_crypt_info() argument
601 if (key_loc != nullptr) { in get_crypt_info()
602 *key_loc = entry.key_loc; in get_crypt_info()
616 char key_loc[PROPERTY_VALUE_MAX]; in get_crypt_ftr_info() local
621 std::string key_loc; in get_crypt_ftr_info() local
623 get_crypt_info(&key_loc, &real_blkdev); in get_crypt_ftr_info()
625 if (key_loc == KEY_IN_FOOTER) { in get_crypt_ftr_info()
638 strlcpy(cached_metadata_fname, key_loc.c_str(), sizeof(cached_metadata_fname)); in get_crypt_ftr_info()
1787 std::string key_loc; in do_crypto_complete() local
1788 get_crypt_info(&key_loc, nullptr); in do_crypto_complete()
[all …]
/system/core/fs_mgr/include_fstab/fstab/
Dfstab.h40 std::string key_loc; member
/system/core/fs_mgr/
Dfs_mgr_roots.cpp124 bool crypt_footer = rec->is_encryptable() && rec->key_loc == "footer"; in EnsurePathMounted()
Dfs_mgr_fstab.cpp191 entry->key_loc = arg; in ParseFsMgrFlags()
238 entry->key_loc = arg; in ParseFsMgrFlags()
245 entry->key_loc = arg; in ParseFsMgrFlags()
Dfs_mgr.cpp1537 if (current_entry.is_encryptable() && current_entry.key_loc != KEY_IN_FOOTER) { in fs_mgr_mount_all()
1539 open(current_entry.key_loc.c_str(), O_WRONLY | O_CLOEXEC))); in fs_mgr_mount_all()
1541 LINFO << __FUNCTION__ << "(): also wipe " << current_entry.key_loc; in fs_mgr_mount_all()
1544 PERROR << __FUNCTION__ << "(): " << current_entry.key_loc << " wouldn't open"; in fs_mgr_mount_all()
1546 } 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.cpp510 EXPECT_EQ("", entry->key_loc); in TEST()
535 EXPECT_EQ("", entry->key_loc); in TEST()
559 EXPECT_EQ("", entry->key_loc); in TEST()
580 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()
748 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()
771 EXPECT_EQ("/dir/key", entry->key_loc); in TEST()