8000 log when not a container cgroup instead of err by geyslan · Pull Request #2737 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

log when not a container cgroup instead of err #2737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkg/ebpf/events_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,13 @@ func (t *Tracee) processCgroupMkdir(event *trace.Event) error {
// If cgroupId is from a regular cgroup directory, and not the
// container base directory (from known runtimes), it should be
// removed from the containers bpf map.
err = t.containers.RemoveFromBpfMap(t.bpfModule, cgroupId, hId)
if err := t.containers.RemoveFromBpfMap(t.bpfModule, cgroupId, hId); err != nil {
// If the cgroupId was not found in bpf map, this could mean that
// it is not a container cgroup and, as a systemd cgroup, could have been
// created and removed very quickly.
// In this case, we don't want to return an error.
logger.Debug("failed to remove entry from containers bpf map", "error", err)
}
}
return err
}
Expand Down
0