summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 14:54:43 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 15:03:50 +0200
commit64d8b4eebb01c6647b0588475c785cdd075389d3 (patch)
tree3599df29a94df5298f783b39dbacd5957f291497 /cmd/podman
parent81c7a2444cb5cbf8b8911cdb59446a239f89168c (diff)
downloadpodman-64d8b4eebb01c6647b0588475c785cdd075389d3.tar.gz
podman-64d8b4eebb01c6647b0588475c785cdd075389d3.tar.bz2
podman-64d8b4eebb01c6647b0588475c785cdd075389d3.zip
podman: implement userns=keep-id
add missing implementation for userns=keep-id and enable the user namespaces tests. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common/specgen.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index b90030f7f..ce91e0b2e 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -246,20 +246,6 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
s.NetNS = c.Net.Network
}
- // TODO this is going to have to be done the libpod/server end of things
- // USER
- //user := c.String("user")
- //if user == "" {
- // switch {
- // case usernsMode.IsKeepID():
- // user = fmt.Sprintf("%d:%d", rootless.GetRootlessUID(), rootless.GetRootlessGID())
- // case data == nil:
- // user = "0"
- // default:
- // user = data.Config.User
- // }
- //}
-
// STOP SIGNAL
signalString := "TERM"
if sig := c.StopSignal; len(sig) > 0 {