summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-05-08 16:25:10 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-05-08 16:25:12 +0200
commit817f86c73464f35d05dd876d8ede9847165303ba (patch)
tree7120382b799c703b6536f4d08354735018388c37
parentab518cdba02b85a32d3c2bce4c0b65dcdea4dfcc (diff)
downloadpodman-817f86c73464f35d05dd876d8ede9847165303ba.tar.gz
podman-817f86c73464f35d05dd876d8ede9847165303ba.tar.bz2
podman-817f86c73464f35d05dd876d8ede9847165303ba.zip
abi: do not attempt to setup rootless if euid==0
if the process has already euid==0 do not attempt to setup rootless. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/domain/infra/abi/system.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/system.go b/pkg/domain/infra/abi/system.go
index 692fcfa0f..24c62465f 100644
--- a/pkg/domain/infra/abi/system.go
+++ b/pkg/domain/infra/abi/system.go
@@ -86,6 +86,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
}
}
}
+ return nil
}
pausePidPath, err := util.GetRootlessPauseProcessPidPath()