1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 *);
|