diff options
| author | daniel <daniel@planethacker.net> | 2025-05-06 16:57:32 -0700 |
|---|---|---|
| committer | daniel <daniel@planethacker.net> | 2025-05-06 16:57:32 -0700 |
| commit | 2278df1493e064c197913e49b5d1935942d83448 (patch) | |
| tree | 42f06ab2f76e2ddf228bafbb03f79621975a4534 /include/proc_connector.h | |
initial import
Diffstat (limited to 'include/proc_connector.h')
| -rw-r--r-- | include/proc_connector.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/proc_connector.h b/include/proc_connector.h new file mode 100644 index 0000000..10a20ff --- /dev/null +++ b/include/proc_connector.h @@ -0,0 +1,24 @@ +#pragma once + +#include <linux/connector.h> +#include <linux/cn_proc.h> + +#include "agent_context.h" +#include "proc_ledger.h" +#include "json.h" +#include "net.h" + +sock_t setup_proc_connector(void); +void select_proc_connector(sock_t, agent_context_t *); + +json_t handle_PROC_EVENT_SID(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_COMM(struct proc_event *, agent_context_t *, const char *); +json_t handle_PROC_EVENT_COREDUMP(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_FORK(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_EXEC(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_EXEC_environment(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_EXIT(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_UID(struct proc_event *, agent_context_t *, int, int); +json_t handle_PROC_EVENT_GID(struct proc_event *, agent_context_t *, int, int); +json_t handle_PROC_EVENT_PTRACE(struct proc_event *, agent_context_t *); +json_t handle_PROC_EVENT_UNKNOWN(struct proc_event *, agent_context_t *); |
