Searched refs:hashtree_file (Results 1 – 5 of 5) sorted by relevance
/aosp12/system/apex/apexd/ |
H A D | apexd_verity_test.cpp | 54 auto hashtree_file = StringPrintf("%s/hashtree", td.path); in TEST() local 60 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST() 61 << "Failed to read " << hashtree_file; in TEST() 65 status = PrepareHashTree(*apex, *verity_data, hashtree_file); in TEST() 70 ASSERT_TRUE(ReadFileToString(hashtree_file, &second_hashtree)) in TEST() 71 << "Failed to read " << hashtree_file; in TEST() 75 << hashtree_file << " was regenerated"; in TEST() 86 auto hashtree_file = StringPrintf("%s/hashtree", td.path); in TEST() local 92 ASSERT_TRUE(ReadFileToString(hashtree_file, &first_hashtree)) in TEST() 93 << "Failed to read " << hashtree_file; in TEST() [all …]
|
H A D | apexd_verity.cpp | 62 const std::string& hashtree_file) { in GenerateHashTree() argument 116 return Error() << "Failed to write hashtree to " << hashtree_file; in GenerateHashTree() 126 return ErrnoError() << "Failed to open " << hashtree_file; in CalculateRootDigest() 133 << hashtree_file; in CalculateRootDigest() 146 return Error() << "Failed to calculate digest of " << hashtree_file; in CalculateRootDigest() 157 const std::string& hashtree_file) { in PrepareHashTree() argument 166 auto exists = PathExists(hashtree_file); in PrepareHashTree() 171 auto digest = CalculateRootDigest(hashtree_file, verity_data); in PrepareHashTree() 187 if (auto st = GenerateHashTree(apex, verity_data, hashtree_file); in PrepareHashTree() 191 LOG(INFO) << "hashtree: generated to " << hashtree_file; in PrepareHashTree() [all …]
|
H A D | apexd_verity.h | 36 const std::string& hashtree_file);
|
H A D | apexd.cpp | 544 if (auto st = PrepareHashTree(apex, *verity_data, hashtree_file); in MountPackageImpl() 631 if (access(hashtree_file.c_str(), F_OK) == 0) { in VerifyAndTempMountPackage() 632 LOG(DEBUG) << hashtree_file << " already exists. Deleting it"; in VerifyAndTempMountPackage() 633 if (TEMP_FAILURE_RETRY(unlink(hashtree_file.c_str())) != 0) { in VerifyAndTempMountPackage() 634 return ErrnoError() << "Failed to unlink " << hashtree_file; in VerifyAndTempMountPackage() 642 LOG(DEBUG) << "Cleaning up " << hashtree_file; in VerifyAndTempMountPackage() 643 if (TEMP_FAILURE_RETRY(unlink(hashtree_file.c_str())) != 0) { in VerifyAndTempMountPackage() 644 PLOG(ERROR) << "Failed to unlink " << hashtree_file; in VerifyAndTempMountPackage() 2174 for (const std::string& hashtree_file : changed_hashtree_files) { in StagePackages() local 2175 if (TEMP_FAILURE_RETRY(unlink(hashtree_file.c_str())) != 0) { in StagePackages() [all …]
|
H A D | apexservice_test.cpp | 2932 std::string hashtree_file = std::string(kApexHashTreeDir) + "/" + in TEST_F() local 2935 ASSERT_FALSE(RegularFileExists(hashtree_file)); in TEST_F()
|