mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
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
This commit is contained in:
committed by
Atomic Bot
parent
daa28349c8
commit
14c0f9d63c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user