From 2c3ad69f4f3d55d750314650f0aa9a10e3b7cb2a Mon Sep 17 00:00:00 2001 From: Zhou Shihui Date: Fri, 18 Oct 2024 11:03:50 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=203853c5d=20from=20https://gitee.?= =?UTF-8?q?com/ImCaO/security=5Fappverify/pulls/232=20app=5Fsystem?= =?UTF-8?q?=E6=A0=A1=E9=AA=8Cprofile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhou Shihui --- interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp index 829f35b..6746266 100644 --- a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp +++ b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp @@ -224,7 +224,8 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, bool HapVerifyV2::VerifyProfileSignature(const Pkcs7Context& pkcs7Context, Pkcs7Context& profileContext) { if (pkcs7Context.matchResult.matchState == MATCH_WITH_SIGN && - pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD) { + (pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD || + pkcs7Context.matchResult.source == APP_SYSTEM)) { if (!HapProfileVerifyUtils::VerifyProfile(profileContext)) { HAPVERIFY_LOG_ERROR("profile verify failed"); return false; -- Gitee