mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #4800 from astrawind/seccomp-agent-conn-leak-12
[1.2] libcontainer: close seccomp agent connection to prevent resource leaks
This commit is contained in:
@@ -871,6 +871,7 @@ func sendContainerProcessState(listenerPath string, state *specs.ContainerProces
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to connect with seccomp agent specified in the seccomp profile: %w", err)
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
socket, err := conn.(*net.UnixConn).File()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user