summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-11 13:06:57 -0800
committerGitHub <noreply@github.com>2018-12-11 13:06:57 -0800
commit878301f79db4483697eec2ab2563a0a9d465b26b (patch)
tree224d586bd7da3edc202f40004d2daaa4681e8fc2 /libpod/container_internal_linux.go
parent8645df84dbb21f5988b46e6646bb0dd04fdb2b51 (diff)
parentbc57ecec42e53635bb4846a4af321b6203f78854 (diff)
downloadpodman-878301f79db4483697eec2ab2563a0a9d465b26b.tar.gz
podman-878301f79db4483697eec2ab2563a0a9d465b26b.tar.bz2
podman-878301f79db4483697eec2ab2563a0a9d465b26b.zip
Merge pull request #1978 from mheon/only_one_execuser
Prevent a second lookup of user for image volumes
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index f9b0592f9..4f2955110 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -236,7 +236,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
// Bind builtin image volumes
if c.config.Rootfs == "" && c.config.ImageVolumes {
- if err := c.addLocalVolumes(ctx, &g); err != nil {
+ if err := c.addLocalVolumes(ctx, &g, execUser); err != nil {
return nil, errors.Wrapf(err, "error mounting image volumes")
}
}