Skip to content

Commit

Permalink
[Backport 7.64.x] [CWS] Disable temporarily snapshotting bound sockets (
Browse files Browse the repository at this point in the history
#34771)

Co-authored-by: Momar TOURÉ <36661127+mftoure@users.noreply.github.com>
  • Loading branch information
agent-platform-auto-pr[bot] and mftoure authored Mar 5, 2025
1 parent f83c6ba commit 8c9f4bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/security/resolvers/resolvers_ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ func (r *EBPFResolvers) Snapshot() error {
return err
}

// snapshot sockets
if err := r.snapshotBoundSockets(); err != nil {
return fmt.Errorf("unable to snapshot bound sockets: %w", err)
}

return nil
}

Expand Down Expand Up @@ -324,6 +319,7 @@ func (r *EBPFResolvers) snapshot() error {
return nil
}

// nolint: deadcode, unused
func (r *EBPFResolvers) snapshotBoundSockets() error {
processes, err := utils.GetProcesses()
if err != nil {
Expand Down

0 comments on commit 8c9f4bb

Please sign in to comment.