Skip to content

Commit

Permalink
rust: remove parent pid from execution report
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Oct 18, 2024
1 parent 3785cd6 commit 4e92977
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion rust/intercept/src/bin/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ fn report_execution(path_buf: &PathBuf) {
// Report the execution
let execution = intercept::Event::Started {
pid: intercept::ProcessId(std::process::id() as u32),
ppid: intercept::ProcessId(std::os::unix::process::parent_id() as u32), // FIXME: This is Unix specific
execution: intercept::Execution {
executable: path_buf.clone(),
arguments: std::env::args().collect(),
Expand Down
1 change: 0 additions & 1 deletion rust/intercept/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ pub struct Execution {
pub enum Event {
Started {
pid: ProcessId,
ppid: ProcessId,
execution: Execution,
},
Terminated {
Expand Down
1 change: 0 additions & 1 deletion rust/intercept/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ mod test {
timestamp: 0,
event: Event::Started {
pid: ProcessId(1),
ppid: ProcessId(0),
execution: Execution {
executable: PathBuf::from("/usr/bin/ls"),
arguments: vec!["ls".to_string(), "-l".to_string()],
Expand Down

0 comments on commit 4e92977

Please sign in to comment.