Skip to content

Commit

Permalink
Merge pull request #7871 from rhatdan/gid
Browse files Browse the repository at this point in the history
Add additionalGIDs from users in rootless mode
  • Loading branch information
openshift-merge-robot authored Oct 2, 2020
2 parents a88f404 + baede7c commit 54a9ecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpod/container_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
}

// Look up and add groups the user belongs to, if a group wasn't directly specified
if !rootless.IsRootless() && !strings.Contains(c.config.User, ":") {
if !strings.Contains(c.config.User, ":") {
for _, gid := range execUser.Sgids {
// FIXME: We need to add a flag to containers.conf to not add these for HPC Users.
g.AddProcessAdditionalGid(uint32(gid))
}
}
Expand Down

0 comments on commit 54a9ecc

Please sign in to comment.