diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-08-30 18:26:41 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-09-04 14:36:57 +0000 |
commit | 14c0f9d63c1f9ab6b4f09a827a061dfeb7f4eb79 (patch) | |
tree | fd2c4d72e9fe57fec8cc826522d077833637e5d8 /cmd/podman/main.go | |
parent | daa28349c8cfadc53de96a851b7d1d71de7b14e9 (diff) | |
download | podman-14c0f9d63c1f9ab6b4f09a827a061dfeb7f4eb79.tar.gz podman-14c0f9d63c1f9ab6b4f09a827a061dfeb7f4eb79.tar.bz2 podman-14c0f9d63c1f9ab6b4f09a827a061dfeb7f4eb79.zip |
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 <gscrivan@redhat.com>
Closes: #1372
Approved by: mheon
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r-- | cmd/podman/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, |