1# Security Subsystem Changelog 2 3## cl.security_guard.1 securityGuard Permission Change 4 5**Access Level** 6 7System API 8 9**Reason for Change** 10 11Redefined the permissions for obtaining detailed security data according to the permission naming specifications, and deleted old permissions. 12 13**Change Impact** 14 15This change is a non-compatible change. After the permission change, the compilation is successful, but the original functionality of the APIs cannot work. When the related API is called, error 201 is thrown. 16 17**Start API Level** 18 1912 20 21**Change Since** 22 23OpenHarmony 5.0.0.36 24 25**Key API/Component Changes** 26 27| API| Permission Before the Change| Permission After the Change| 28| ------- | ----- | ------ | 29| reportSecurityEvent(securityEvent: SecurityEvent): void | ohos.permission.securityguard.REPORT_SECURITY_INFO| ohos.permission.REPORT_SECURITY_EVENT| 30| querySecurityEvent(rules: Array<SecurityEventRule>, querier: Querier): void | ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO| ohos.permission.QUERY_SECURITY_EVENT| 31| startSecurityEventCollector(rule: CollectorRule): void | ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO| ohos.permission.QUERY_SECURITY_EVENT| 32| stopSecurityEventCollector(rule: CollectorRule): void | ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO| ohos.permission.QUERY_SECURITY_EVENT| 33| getModelResult(rule: ModelRule): Promise<ModelResult> | ohos.permission.securityguard.REQUEST_SECURITY_MODEL_RESULT| ohos.permission.QUERY_SECURITY_MODEL_RESULT| 34| on(type: 'securityEventOccur', securityEventInfo: SecurityEventInfo, callback: Callback<SecurityEvent>): void | ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO| ohos.permission.QUERY_SECURITY_EVENT| 35| off(type: 'securityEventOccur', securityEventInfo: SecurityEventInfo, callback?: Callback<SecurityEvent>): void | ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO| ohos.permission.QUERY_SECURITY_EVENT| 36 37**Adaptation Guide** 38 39In migration scenarios only, request and configure the following permissions:<br> 40ohos.permission.REPORT_SECURITY_EVENT<br> 41ohos.permission.QUERY_SECURITY_EVENT<br> 42ohos.permission.QUERY_SECURITY_MODEL_RESULT 43