Merge pull request #25879 from jankaluza/cloexec

Fix the fd leaking to aardvark-dns.
This commit is contained in:
openshift-merge-bot[bot]
2025-04-15 19:52:18 +00:00
committed by GitHub

View File

@ -440,7 +440,7 @@ func (c *Container) getOCICgroupPath() (string, error) {
}
func openDirectory(path string) (fd int, err error) {
return unix.Open(path, unix.O_RDONLY|unix.O_PATH, 0)
return unix.Open(path, unix.O_RDONLY|unix.O_PATH|unix.O_CLOEXEC, 0)
}
func (c *Container) addNetworkNamespace(g *generate.Generator) error {