#pragma once #include #include #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 *);