mirror of
https://gitee.com/openharmony/security_security_guard
synced 2024-11-23 14:39:47 +00:00
commit
73850cd05f
@ -53,7 +53,7 @@ namespace {
|
||||
constexpr int32_t TWO_ARGS = 2;
|
||||
constexpr int32_t TIMEOUT_REPLY = 10000;
|
||||
const std::string REPORT_PERMISSION = "ohos.permission.securityguard.REPORT_SECURITY_INFO";
|
||||
const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_INFO";
|
||||
const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_EVENT";
|
||||
const std::string REQUEST_PERMISSION = "ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO";
|
||||
const std::string MANAGE_CONFIG_PERMISSION = "ohos.permission.MANAGE_SECURITY_GUARD_CONFIG";
|
||||
const std::string QUERY_SECURITY_EVENT_PERMISSION = "ohos.permission.QUERY_SECURITY_EVENT";
|
||||
|
@ -83,7 +83,7 @@ int32_t SecurityCollectorManagerService::Subscribe(const SecurityCollectorSubscr
|
||||
const sptr<IRemoteObject> &callback)
|
||||
{
|
||||
Event event = subscribeInfo.GetEvent();
|
||||
LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ", \n"
|
||||
LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ",\n"
|
||||
"version:%{public}s, extra:%{public}s", subscribeInfo.GetDuration(), (int)subscribeInfo.IsNotify(),
|
||||
event.eventId, event.version.c_str(), event.extra.c_str());
|
||||
int32_t ret = HasPermission(REPORT_PERMISSION);
|
||||
|
Loading…
Reference in New Issue
Block a user