![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include "driver_events.h"#include "pano_events.h"#include "error_message.h"#include "grpc.hpp"#include "pano_log.h"#include "detector_stream.h"#include "process_images.h"#include "utils.h"#include <nlohmann/json.hpp>#include <algorithm>#include <atomic>#include <chrono>#include <condition_variable>#include <iostream>#include <mutex>#include <string>#include <thread>#include <unordered_map>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | _PANO_EVENT_REQUEST |
| struct | _PANO_WRITTEN_FILE |
Macros | |
| #define | PANO_PENDING_EVENT_REQUESTS 4 |
| #define | PANO_WRITE_SETTLE_MS 2000 |
| #define | PANO_WRITE_MAX_WINDOW_MS 30000 |
| #define | PANO_WRITE_POLL_MS 500 |
Typedefs | |
| typedef struct _PANO_EVENT_REQUEST | PANO_EVENT_REQUEST |
| typedef struct _PANO_EVENT_REQUEST * | PPANO_EVENT_REQUEST |
| typedef struct _PANO_WRITTEN_FILE | PANO_WRITTEN_FILE |
Functions | |
| ERRORCODE | StartDriverEvents (const Configuration *configuration) |
| Opens the Panoptes driver device and starts the threads that read events from it (IOCTL_PANOPTES_GET_EVENT) and queue scans for files that were created or written. | |
| void | StopDriverEvents () |
| Cancels the pending event requests and stops the reader threads. | |
| #define PANO_PENDING_EVENT_REQUESTS 4 |
Definition at line 24 of file driver_events.cpp.
| #define PANO_WRITE_MAX_WINDOW_MS 30000 |
Definition at line 31 of file driver_events.cpp.
| #define PANO_WRITE_POLL_MS 500 |
Definition at line 32 of file driver_events.cpp.
| #define PANO_WRITE_SETTLE_MS 2000 |
Definition at line 30 of file driver_events.cpp.
| typedef struct _PANO_EVENT_REQUEST PANO_EVENT_REQUEST |
| typedef struct _PANO_WRITTEN_FILE PANO_WRITTEN_FILE |
| typedef struct _PANO_EVENT_REQUEST * PPANO_EVENT_REQUEST |
| ERRORCODE StartDriverEvents | ( | const Configuration * | configuration | ) |
Opens the Panoptes driver device and starts the threads that read events from it (IOCTL_PANOPTES_GET_EVENT) and queue scans for files that were created or written.
| configuration | The service configuration; its log exclusions are applied to events |
Definition at line 1167 of file driver_events.cpp.
References ERRORCODE, KERNEL_PIPE, Configuration::m_logExclusions, NOT_ADMIN, PANO_SUCCESS, PANOPTES_USER_DEVICE_PATH, and WINDOWS_ERR.
Referenced by WinMain().
| void StopDriverEvents | ( | ) |
Cancels the pending event requests and stops the reader threads.
Definition at line 1206 of file driver_events.cpp.