diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-17 21:22:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 21:22:06 -0400 |
commit | 6472b44c3420fbba04dc3b5fe96be6576ee43e61 (patch) | |
tree | c44da0040048198cebab3958be2d824e686d71be /pkg | |
parent | 6e410ede70aa8d086cf3d894e51de89f9e7bb83a (diff) | |
parent | c385e6d36334342195203e5bd368f772992911d1 (diff) | |
download | podman-6472b44c3420fbba04dc3b5fe96be6576ee43e61.tar.gz podman-6472b44c3420fbba04dc3b5fe96be6576ee43e61.tar.bz2 podman-6472b44c3420fbba04dc3b5fe96be6576ee43e61.zip |
Merge pull request #6654 from rhatdan/keepid
Don't ignore --user flag in rootless --userns keepid
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/specgen/generate/namespaces.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/specgen/generate/namespaces.go b/pkg/specgen/generate/namespaces.go index e67afe1bf..3815bbcc9 100644 --- a/pkg/specgen/generate/namespaces.go +++ b/pkg/specgen/generate/namespaces.go @@ -153,9 +153,7 @@ func namespaceOptions(ctx context.Context, s *specgen.SpecGenerator, rt *libpod. // User switch s.UserNS.NSMode { case specgen.KeepID: - if rootless.IsRootless() { - s.User = "" - } else { + if !rootless.IsRootless() { // keep-id as root doesn't need a user namespace s.UserNS.NSMode = specgen.Host } |