Home
last modified time | relevance | path

Searched refs:volume_uuid (Results 1 – 3 of 3) sorted by relevance

/system/vold/
DFsCrypt.cpp639 for (const auto& [volume_uuid, policy] : policies.adoptable) { in evict_user_keys()
640 success &= android::vold::evictKey(BuildDataPath(volume_uuid), policy); in evict_user_keys()
688 static std::string volkey_path(const std::string& misc_path, const std::string& volume_uuid) { in volkey_path() argument
689 return misc_path + "/vold/volume_keys/" + volume_uuid + "/default"; in volkey_path()
692 static std::string volume_secdiscardable_path(const std::string& volume_uuid) { in volume_secdiscardable_path() argument
693 return systemwide_volume_key_dir + "/" + volume_uuid + "/secdiscardable"; in volume_secdiscardable_path()
696 static bool read_or_create_volkey(const std::string& misc_path, const std::string& volume_uuid, in read_or_create_volkey() argument
698 auto secdiscardable_path = volume_secdiscardable_path(volume_uuid); in read_or_create_volkey()
708 auto key_path = volkey_path(misc_path, volume_uuid); in read_or_create_volkey()
717 if (!install_storage_key(BuildDataPath(volume_uuid), options, key, policy)) return false; in read_or_create_volkey()
[all …]
Dvold_prepare_subdirs.cpp172 static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int flags) { in prepare_subdirs() argument
180 auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id); in prepare_subdirs()
185 auto misc_de_path = android::vold::BuildDataMiscDePath(volume_uuid, user_id); in prepare_subdirs()
191 if (volume_uuid.empty()) { in prepare_subdirs()
216 auto user_ce_path = android::vold::BuildDataUserCePath(volume_uuid, user_id); in prepare_subdirs()
221 auto misc_ce_path = android::vold::BuildDataMiscCePath(volume_uuid, user_id); in prepare_subdirs()
227 if (volume_uuid.empty()) { in prepare_subdirs()
267 static bool destroy_subdirs(const std::string& volume_uuid, int user_id, int flags) { in destroy_subdirs() argument
270 auto misc_ce_path = android::vold::BuildDataMiscCePath(volume_uuid, user_id); in destroy_subdirs()
273 if (volume_uuid.empty()) { in destroy_subdirs()
[all …]
DFsCrypt.h35 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int flags);
36 bool fscrypt_destroy_user_storage(const std::string& volume_uuid, userid_t user_id, int flags);
38 bool fscrypt_destroy_volume_keys(const std::string& volume_uuid);