summaryrefslogtreecommitdiff
path: root/pkg/specgen
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-28 15:25:59 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-28 15:25:59 +0200
commita9aa9e2f78b31fe2a2338e530a274144a155baa4 (patch)
treeec8294e0505b95beea9fa9364441e7d0af335619 /pkg/specgen
parentc999f9daf228cf9c7d62dcd1d32f689817821ecf (diff)
downloadpodman-a9aa9e2f78b31fe2a2338e530a274144a155baa4.tar.gz
podman-a9aa9e2f78b31fe2a2338e530a274144a155baa4.tar.bz2
podman-a9aa9e2f78b31fe2a2338e530a274144a155baa4.zip
pkg, specgen: do not hardcode user=0 in the config if not specified
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgen')
-rw-r--r--pkg/specgen/generate/container.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go
index b27dd1cc2..75e8d8191 100644
--- a/pkg/specgen/generate/container.go
+++ b/pkg/specgen/generate/container.go
@@ -126,13 +126,6 @@ func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerat
if err != nil {
return err
}
-
- // TODO This should be enabled when namespaces actually work
- //case usernsMode.IsKeepID():
- // user = fmt.Sprintf("%d:%d", rootless.GetRootlessUID(), rootless.GetRootlessGID())
- if len(s.User) == 0 {
- s.User = "0"
- }
}
if err := finishThrottleDevices(s); err != nil {
return err