Skip to content

Commit

Permalink
fix(bpflsm/alert): missing procname in proc alerts
Browse files Browse the repository at this point in the history
Signed-off-by: daemon1024 <[email protected]>
  • Loading branch information
daemon1024 committed Mar 11, 2024
1 parent 5d43dbd commit 4aa7215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions KubeArmor/enforcer/bpflsm/enforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ func (be *BPFEnforcer) TraceEvents() {
log.Operation = "Process"
log.Source = string(bytes.Trim(event.Data.Source[:], "\x00"))
log.Resource = string(bytes.Trim(event.Data.Path[:], "\x00"))
log.ProcessName = log.Resource
log.ParentProcessName = log.Source
log.Data = "lsm=" + mon.GetSyscallName(int32(event.EventID))

case mon.Capable:
Expand Down

0 comments on commit 4aa7215

Please sign in to comment.