summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-05-08 13:44:06 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-05-17 20:47:55 +0200
commit2e0fef51b3928337ef46629b4627ff1700a918d1 (patch)
tree07a4084eb20ef794df5aa14d4a7914e8e21ef412 /libpod/runtime.go
parent144244aeed673957692bc6cf36c933e4b2d93a80 (diff)
downloadpodman-2e0fef51b3928337ef46629b4627ff1700a918d1.tar.gz
podman-2e0fef51b3928337ef46629b4627ff1700a918d1.tar.bz2
podman-2e0fef51b3928337ef46629b4627ff1700a918d1.zip
migrate: not create a new namespace
this leaves the containers stopped but we won't risk to use the wrong user namespace. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 18e9dfeb3..f9b34e315 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -966,18 +966,6 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (err error) {
runtime.valid = true
if runtime.doMigrate {
- if os.Geteuid() != 0 {
- aliveLock.Unlock()
- locked = false
-
- became, ret, err := rootless.BecomeRootInUserNS()
- if err != nil {
- return err
- }
- if became {
- os.Exit(ret)
- }
- }
if err := runtime.migrate(ctx); err != nil {
return err
}