mirror of
https://github.com/containers/podman
synced 2024-10-21 17:53:44 +00:00
runtime: move pause process to scope
make sure the pause process is moved to its own scope as well as what we do when we join an existing user+mount namespace. Closes: https://github.com/containers/podman/issues/11560 [NO TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
72534a74b3
commit
a2c8b5d9d6
|
@ -35,6 +35,7 @@ import (
|
|||
"github.com/containers/podman/v3/pkg/rootless"
|
||||
"github.com/containers/podman/v3/pkg/systemd"
|
||||
"github.com/containers/podman/v3/pkg/util"
|
||||
"github.com/containers/podman/v3/utils"
|
||||
"github.com/containers/storage"
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
"github.com/docker/docker/pkg/namesgenerator"
|
||||
|
@ -543,6 +544,7 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
|
|||
return err
|
||||
}
|
||||
if became {
|
||||
utils.MovePauseProcessToScope(pausePid)
|
||||
os.Exit(ret)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue