mirror of
https://gitee.com/openharmony/security_security_guard
synced 2024-11-27 08:40:35 +00:00
fix kernel whistlist and notification time sequence problem
Match-id-3655f4280177bca5f389792103c41c5c06428bd2
This commit is contained in:
parent
fb6060442e
commit
ff52ac7c34
@ -55,19 +55,15 @@ void DataCollectManagerService::OnStart()
|
||||
TaskHandler::GetInstance()->AddTask(loadDbTask);
|
||||
|
||||
TaskHandler::Task listenerTask = [] {
|
||||
UeventNotify notify;
|
||||
notify.NotifyScan();
|
||||
std::vector<int64_t> whiteList = ModelAnalysis::GetInstance().GetAllEventIds();
|
||||
notify.AddWhiteList(whiteList);
|
||||
|
||||
UeventListener listener;
|
||||
listener.Start();
|
||||
};
|
||||
TaskHandler::GetInstance()->AddTask(listenerTask);
|
||||
|
||||
TaskHandler::Task notifyTask = [] {
|
||||
UeventNotify notify;
|
||||
notify.NotifyScan();
|
||||
|
||||
std::vector<int64_t> whiteList = ModelAnalysis::GetInstance().GetAllEventIds();
|
||||
notify.AddWhiteList(whiteList);
|
||||
};
|
||||
TaskHandler::GetInstance()->AddTask(notifyTask);
|
||||
}
|
||||
|
||||
void DataCollectManagerService::OnStop()
|
||||
|
Loading…
Reference in New Issue
Block a user