From 29c792a5039aeaa9d92f063c3ae2a66c3e9b1626 Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Tue, 23 Jan 2018 14:19:07 -0500 Subject: [PATCH] Clarify wanted netlink proc msgs --- src/procevent.c | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/src/procevent.c b/src/procevent.c index 00c55f96..60481069 100644 --- a/src/procevent.c +++ b/src/procevent.c @@ -838,38 +838,15 @@ static int read_event() { switch (nlcn_msg.proc_ev.what) { case PROC_EVENT_NONE: - // printf("set mcast listen ok\n"); - break; case PROC_EVENT_FORK: - // printf("fork: parent tid=%d pid=%d -> child tid=%d pid=%d\n", - // nlcn_msg.proc_ev.event_data.fork.parent_pid, - // nlcn_msg.proc_ev.event_data.fork.parent_tgid, - // nlcn_msg.proc_ev.event_data.fork.child_pid, - // nlcn_msg.proc_ev.event_data.fork.child_tgid); - // proc_status = PROCEVENT_STARTED; - // proc_id = nlcn_msg.proc_ev.event_data.fork.child_pid; + case PROC_EVENT_UID: + case PROC_EVENT_GID: + // Not of interest in current version break; case PROC_EVENT_EXEC: - // printf("exec: tid=%d pid=%d\n", - // nlcn_msg.proc_ev.event_data.exec.process_pid, - // nlcn_msg.proc_ev.event_data.exec.process_tgid); proc_status = PROCEVENT_STARTED; proc_id = nlcn_msg.proc_ev.event_data.exec.process_pid; break; - case PROC_EVENT_UID: - // printf("uid change: tid=%d pid=%d from %d to %d\n", - // nlcn_msg.proc_ev.event_data.id.process_pid, - // nlcn_msg.proc_ev.event_data.id.process_tgid, - // nlcn_msg.proc_ev.event_data.id.r.ruid, - // nlcn_msg.proc_ev.event_data.id.e.euid); - break; - case PROC_EVENT_GID: - // printf("gid change: tid=%d pid=%d from %d to %d\n", - // nlcn_msg.proc_ev.event_data.id.process_pid, - // nlcn_msg.proc_ev.event_data.id.process_tgid, - // nlcn_msg.proc_ev.event_data.id.r.rgid, - // nlcn_msg.proc_ev.event_data.id.e.egid); - break; case PROC_EVENT_EXIT: proc_id = nlcn_msg.proc_ev.event_data.exit.process_pid; proc_status = PROCEVENT_EXITED; @@ -1247,7 +1224,6 @@ static int procevent_read(void) /* {{{ */ static int procevent_shutdown(void) /* {{{ */ { - // int status = 0; processlist_t *pl; DEBUG("procevent plugin: Shutting down thread."); -- 2.11.0