Skip to content

Commit aeb2018

Browse files
log the UID of exec events
1 parent 12c21c7 commit aeb2018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daemon/procmon/ebpf/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func processExecEvent(event *execEvent) {
238238
if proc == nil {
239239
return
240240
}
241-
log.Debug("[eBPF exec event] type: %d, ppid: %d, pid: %d, %s -> %s", event.Type, event.PPID, event.PID, proc.Path, proc.Args)
241+
log.Debug("[eBPF exec event] type: %d, ppid: %d, pid: %d, uid: %d, %s -> %s", event.Type, event.PPID, event.PID, event.UID, proc.Path, proc.Args)
242242
itemParent, pfound := procmon.EventsCache.IsInStoreByPID(proc.PPID)
243243
if pfound {
244244
proc.Parent = &itemParent.Proc
@@ -258,7 +258,7 @@ func processExecEvent(event *execEvent) {
258258
}
259259

260260
// from now on use cached Process
261-
log.Debug("[eBPF event inCache] -> %d, %s", event.PID, item.Proc.Path)
261+
log.Debug("[eBPF event inCache] pid: %d, uid: %d, %s", event.PID, event.UID, item.Proc.Path)
262262
}
263263

264264
// event2process creates a new Process from execEvent

0 commit comments

Comments
 (0)