Skip to content

Commit

Permalink
edriver-rust: patch
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskaliX committed Feb 25, 2024
1 parent ee1ff0e commit c5b3d58
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ Cargo.lock
ncp-rst
plugins/edriver/test/dist/2.txt
target/
plugins/edriver-rust/src/bpf/hades.skel.rs
2 changes: 1 addition & 1 deletion plugins/edriver-rust/src/bpf/common/edriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ int rtp__process_exec(struct bpf_raw_tracepoint_args *ctx)
SBT((&c), &proc_i->sinfo_v6, sizeof(struct hds_socket_info_v6));
else if (proc_i->family == AF_INET)
SBT((&c), &proc_i->sinfo, sizeof(struct hds_socket_info));
/* process tree */
SBT_CHAR((&c), &proc_i->pidtree);

return report_event(&c);
}

Expand Down
2 changes: 0 additions & 2 deletions plugins/edriver-rust/src/events/execve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ impl Event for Execve {
m.insert("sport".to_string(), sinfo.local_port);
m.insert("dip".to_string(), sinfo.remote_addr);
m.insert("dport".to_string(), sinfo.remote_port);

m.insert("pidtree".to_string(), parse_str(data, &mut idx)?);
/* extra information */
m.insert("pod_name".to_string(), trans.ns_cache.get(pns, pid));
Expand All @@ -59,7 +58,6 @@ impl Event for Execve {
m.insert("socket_argv".to_string(), trans.argv_cache.get(socket_pid));
}
m.insert("exe_hash".to_string(), trans.hash_cache.get(exe));

/* cache fresh */
trans.argv_cache.put(pid, argv);

Expand Down

0 comments on commit c5b3d58

Please sign in to comment.