mirror of
https://github.com/openharmony/security_security_component_manager.git
synced 2026-08-24 22:51:27 -04:00
告警处理
Signed-off-by: zhaowenli <zhaowenli3@huawei.com> Change-Id: Ieec5459445ffabbf20e96224b6e1a8b315c1d262
This commit is contained in:
@@ -469,10 +469,6 @@ int32_t SecCompManager::CheckClickSecurityComponentInfo(std::shared_ptr<SecCompE
|
||||
|
||||
if ((!SecCompInfoHelper::CheckRectValid(reportComponentInfo->rect_, reportComponentInfo->windowRect_))) {
|
||||
SC_LOG_ERROR(LABEL, "compare component info failed.");
|
||||
int32_t uid = IPCSkeleton::GetCallingUid();
|
||||
OHOS::AppExecFwk::BundleMgrClient bmsClient;
|
||||
std::string bundleName = "";
|
||||
bmsClient.GetNameForUid(uid, bundleName);
|
||||
HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::SEC_COMPONENT, "COMPONENT_INFO_CHECK_FAILED",
|
||||
HiviewDFX::HiSysEvent::EventType::SECURITY, "CALLER_UID", uid, "CALLER_BUNDLE_NAME", bundleName,
|
||||
"CALLER_PID", IPCSkeleton::GetCallingPid(), "SC_ID", scId, "CALL_SCENE", "CLICK", "SC_TYPE",
|
||||
|
||||
Reference in New Issue
Block a user