mirror of
https://github.com/containers/podman.git
synced 2025-07-02 00:30:00 +08:00
Merge pull request #25879 from jankaluza/cloexec
Fix the fd leaking to aardvark-dns.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user