Skip to content

Commit

Permalink
fix: kauditd process detection (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
paytonward6 authored Oct 13, 2023
1 parent 192ac02 commit 08a3fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion health.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func isKauditdRunning() (bool, error) {
}
for _, proc := range procs {
pname, err := proc.Name()
if err != nil && pname == "kauditd" {
if err == nil && pname == "kauditd" {
return true, nil
}
}
Expand Down

0 comments on commit 08a3fc2

Please sign in to comment.