Skip to content

Commit

Permalink
[CWS] Use ProcessCacheEntry cgroup context as event cgroup context (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce authored Nov 28, 2024
1 parent 5782113 commit fc3a485
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/security/probe/probe_ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,9 @@ func (p *EBPFProbe) setProcessContext(eventType model.EventType, event *model.Ev
panic("should always return a process context")
}

// do the same with cgroup context
event.CGroupContext = event.ProcessCacheEntry.CGroup

if process.IsKThread(event.ProcessContext.PPid, event.ProcessContext.Pid) {
return false
}
Expand Down

0 comments on commit fc3a485

Please sign in to comment.