mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Enable stylecheck linter
Use the stylecheck linter and fix the reported problems. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user