diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-28 20:18:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 20:18:13 +0100 |
commit | 742093c2f27d79a76dbc45335e6f9458decff567 (patch) | |
tree | 5f630daa82eae63f999b692a79cda8affdf18d7e /libpod/container_api.go | |
parent | 05550ed848d2cbb6417af286dcee6667c0d1adee (diff) | |
parent | b41c864d569357a102ee2335a4947e59e5e2b08a (diff) | |
download | podman-742093c2f27d79a76dbc45335e6f9458decff567.tar.gz podman-742093c2f27d79a76dbc45335e6f9458decff567.tar.bz2 podman-742093c2f27d79a76dbc45335e6f9458decff567.zip |
Merge pull request #5349 from mheon/ensure_exec_suppgroups
Ensure that exec sessions inherit supplemental groups
Diffstat (limited to 'libpod/container_api.go')
-rw-r--r-- | libpod/container_api.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go index d612341bc..dabbe27dc 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -270,11 +270,6 @@ func (c *Container) Exec(tty, privileged bool, env map[string]string, cmd []stri } }() - // if the user is empty, we should inherit the user that the container is currently running with - if user == "" { - user = c.config.User - } - opts := new(ExecOptions) opts.Cmd = cmd opts.CapAdd = capList |