From 14c0f9d63c1f9ab6b4f09a827a061dfeb7f4eb79 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 30 Aug 2018 18:26:41 +0200 Subject: rootless: be in an userns to initialize the runtime be sure to be in an userns for a rootless process before initializing the runtime. In case we are not running as uid==0, take advantage of "podman info" that creates the runtime. Signed-off-by: Giuseppe Scrivano Closes: #1372 Approved by: mheon --- cmd/podman/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman/main.go') diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 0e6a2e600..6b9bda55e 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -29,6 +29,8 @@ var cmdsNotRequiringRootless = map[string]bool{ "help": true, "version": true, "exec": true, + // `info` must be executed in an user namespace. + // If this change, please also update libpod.refreshRootless() "login": true, "logout": true, "kill": true, -- cgit v1.2.3-54-g00ecf