Skip to content

Commit

Permalink
Lower ptrace tracee resolution error and add more context
Browse files Browse the repository at this point in the history
  • Loading branch information
spikat committed Dec 10, 2024
1 parent 86aa47a commit 2a2715b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/security/probe/probe_ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,8 @@ func (p *EBPFProbe) handleEvent(CPU int, data []byte) {
} else {
pid, err := utils.TryToResolveTraceePid(event.ProcessContext.Process.Pid, event.PTrace.NSPID)
if err != nil {
seclog.Errorf("PTrace err: %v", err)
seclog.Tracef("PTrace tracee resolution error for process %s in container %s: %v",
event.ProcessContext.Process.FileEvent.FilepathStr, containerID, err)
return
}
pidToResolve = pid
Expand Down

0 comments on commit 2a2715b

Please sign in to comment.