diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 14:15:26 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 23:01:29 +0100 |
commit | ef2fc90f2d0057bfddee1b83d307e853181a4988 (patch) | |
tree | d1a8f350ff32068ea017e7a5c5384c8a184a8fb5 /libpod/container_internal_linux.go | |
parent | afe4ce6b1ce6a5ba21472f51defd243bdd7750b3 (diff) | |
download | podman-ef2fc90f2d0057bfddee1b83d307e853181a4988.tar.gz podman-ef2fc90f2d0057bfddee1b83d307e853181a4988.tar.bz2 podman-ef2fc90f2d0057bfddee1b83d307e853181a4988.zip |
Enable stylecheck linter
Use the stylecheck linter and fix the reported problems.
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index 1c4537a27..da8f07c9e 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -521,14 +521,14 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) { }} } for _, gid := range execUser.Sgids { - isGidAvailable := false + isGIDAvailable := false for _, m := range gidMappings { if gid >= m.ContainerID && gid < m.ContainerID+m.Size { - isGidAvailable = true + isGIDAvailable = true break } } - if isGidAvailable { + if isGIDAvailable { g.AddProcessAdditionalGid(uint32(gid)) } else { logrus.Warnf("additional gid=%d is not present in the user namespace, skip setting it", gid) |