summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-05 00:16:51 +0200
committerGitHub <noreply@github.com>2022-09-05 00:16:51 +0200
commit5c7f28336171f0a5137edd274e45608120d31289 (patch)
treee4717863dde464450a6ffdb86201ed40d2f8e8b7 /libpod
parentb506f6ebb7e49e054c3b45c481109637cbd6b20f (diff)
parentd82a41687e614d9ac8b2d169dee47fe226835e4c (diff)
downloadpodman-5c7f28336171f0a5137edd274e45608120d31289.tar.gz
podman-5c7f28336171f0a5137edd274e45608120d31289.tar.bz2
podman-5c7f28336171f0a5137edd274e45608120d31289.zip
Merge pull request #15618 from mheon/add_group_to_addtlgroups
Add container GID to additional groups
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 5c5fd471b..bb50ddc43 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -682,6 +682,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
// User and Group must go together
g.SetProcessUID(uint32(execUser.Uid))
g.SetProcessGID(uint32(execUser.Gid))
+ g.AddProcessAdditionalGid(uint32(execUser.Gid))
}
if c.config.Umask != "" {