Skip to content

Commit

Permalink
Merge pull request #1679 from daemon1024/fix-no-policyname-proc-bpflsm
Browse files Browse the repository at this point in the history
fix(bpflsm/alert): missing procname in proc alerts
  • Loading branch information
DelusionalOptimist authored Mar 12, 2024
2 parents 5d43dbd + 4aa7215 commit 6ab1344
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 6ab1344

Please sign in to comment.